提交 48f8aee2 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NCole Robinson <crobinso@redhat.com>
上级 9713aed1
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册