mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
virfirmware: Expose and define autoptr for virFirmwareFree
This function frees a _virFirmware struct. So far, it doesn't need to be called from outside of the module, but this will change shortly. In the light of recent VIR_DEFINE_AUTOPTR_FUNC() additions, do the same to virFirmwareFree(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
9713aed1ab
commit
48f8aee2ab
@ -2040,6 +2040,7 @@ virFirewallDZoneExists;
|
|||||||
|
|
||||||
|
|
||||||
# util/virfirmware.h
|
# util/virfirmware.h
|
||||||
|
virFirmwareFree;
|
||||||
virFirmwareFreeList;
|
virFirmwareFreeList;
|
||||||
virFirmwareParse;
|
virFirmwareParse;
|
||||||
virFirmwareParseList;
|
virFirmwareParseList;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
VIR_LOG_INIT("util.firmware");
|
VIR_LOG_INIT("util.firmware");
|
||||||
|
|
||||||
|
|
||||||
static void
|
void
|
||||||
virFirmwareFree(virFirmwarePtr firmware)
|
virFirmwareFree(virFirmwarePtr firmware)
|
||||||
{
|
{
|
||||||
if (!firmware)
|
if (!firmware)
|
||||||
|
@ -31,6 +31,11 @@ struct _virFirmware {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
virFirmwareFree(virFirmwarePtr firmware);
|
||||||
|
|
||||||
|
VIR_DEFINE_AUTOPTR_FUNC(virFirmware, virFirmwareFree);
|
||||||
|
|
||||||
void
|
void
|
||||||
virFirmwareFreeList(virFirmwarePtr *firmwares, size_t nfirmwares);
|
virFirmwareFreeList(virFirmwarePtr *firmwares, size_t nfirmwares);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user