mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +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
|
||||
virFirmwareFree;
|
||||
virFirmwareFreeList;
|
||||
virFirmwareParse;
|
||||
virFirmwareParseList;
|
||||
|
@ -31,7 +31,7 @@
|
||||
VIR_LOG_INIT("util.firmware");
|
||||
|
||||
|
||||
static void
|
||||
void
|
||||
virFirmwareFree(virFirmwarePtr firmware)
|
||||
{
|
||||
if (!firmware)
|
||||
|
@ -31,6 +31,11 @@ struct _virFirmware {
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
virFirmwareFree(virFirmwarePtr firmware);
|
||||
|
||||
VIR_DEFINE_AUTOPTR_FUNC(virFirmware, virFirmwareFree);
|
||||
|
||||
void
|
||||
virFirmwareFreeList(virFirmwarePtr *firmwares, size_t nfirmwares);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user