1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-10 05:17:59 +03:00

qemu_agent: export qemuAgentDiskAddressFree & add g_auto

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Tested-by: Han Han <hhan@redhat.com>
This commit is contained in:
Marc-André Lureau 2020-11-20 22:09:41 +04:00 committed by Michal Privoznik
parent 7b1bebdf3d
commit f534eae275
2 changed files with 3 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ qemuAgentSetTime(qemuAgentPtr agent,
return ret;
}
static void
void
qemuAgentDiskAddressFree(qemuAgentDiskAddressPtr info)
{
if (!info)

View File

@ -78,6 +78,8 @@ struct _qemuAgentDiskAddress {
unsigned int unit;
char *devnode;
};
void qemuAgentDiskAddressFree(qemuAgentDiskAddressPtr addr);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuAgentDiskAddress, qemuAgentDiskAddressFree);
typedef struct _qemuAgentFSInfo qemuAgentFSInfo;
typedef qemuAgentFSInfo *qemuAgentFSInfoPtr;