snapshot_conf: export virDomainSnapshotDiskDefClear

We will need to call this function from qemu_snapshot when introducing
external snapshot revert support.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina 2023-02-20 10:46:53 +01:00
parent aba6f2a941
commit 824e2a4a98
3 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,7 @@ VIR_ENUM_IMPL(virDomainSnapshotState,
);
/* Snapshot Def functions */
static void
void
virDomainSnapshotDiskDefClear(virDomainSnapshotDiskDef *disk)
{
VIR_FREE(disk->name);

View File

@ -59,6 +59,9 @@ struct _virDomainSnapshotDiskDef {
virStorageSource *src;
};
void
virDomainSnapshotDiskDefClear(virDomainSnapshotDiskDef *disk);
void
virDomainSnapshotDiskDefFree(virDomainSnapshotDiskDef *disk);

View File

@ -1037,6 +1037,7 @@ virDomainSnapshotDefFormat;
virDomainSnapshotDefIsExternal;
virDomainSnapshotDefNew;
virDomainSnapshotDefParseString;
virDomainSnapshotDiskDefClear;
virDomainSnapshotDiskDefFree;
virDomainSnapshotDiskDefParseXML;
virDomainSnapshotFormatConvertXMLFlags;