mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
virDomainSnapshotDiskDefFree: Export and register as autoptr func
Allow using the function for creating temporary snapshot disk definitions for creating <transient/> disk overlays. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Tested-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0912f8e9af
commit
797ee40b21
@ -70,6 +70,11 @@ struct _virDomainSnapshotDiskDef {
|
|||||||
virStorageSourcePtr src;
|
virStorageSourcePtr src;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void
|
||||||
|
virDomainSnapshotDiskDefFree(virDomainSnapshotDiskDefPtr disk);
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainSnapshotDiskDef, virDomainSnapshotDiskDefFree);
|
||||||
|
|
||||||
/* Stores the complete snapshot metadata */
|
/* Stores the complete snapshot metadata */
|
||||||
struct _virDomainSnapshotDef {
|
struct _virDomainSnapshotDef {
|
||||||
virDomainMomentDef parent;
|
virDomainMomentDef parent;
|
||||||
|
@ -30,6 +30,3 @@ virDomainSnapshotDiskDefParseXML(xmlNodePtr node,
|
|||||||
virDomainSnapshotDiskDefPtr def,
|
virDomainSnapshotDiskDefPtr def,
|
||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
virDomainXMLOptionPtr xmlopt);
|
virDomainXMLOptionPtr xmlopt);
|
||||||
|
|
||||||
void
|
|
||||||
virDomainSnapshotDiskDefFree(virDomainSnapshotDiskDefPtr disk);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user