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:
parent
7b1bebdf3d
commit
f534eae275
@ -1815,7 +1815,7 @@ qemuAgentSetTime(qemuAgentPtr agent,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
qemuAgentDiskAddressFree(qemuAgentDiskAddressPtr info)
|
||||
{
|
||||
if (!info)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user