mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
virstorageencryption.h: add AUTOPTR_CLEANUP_FUNC for virStorageEncryptionPtr
This will open an opportunity to modernize virDomainDiskDefParseXML() in the next patch. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
af7b910c4e
commit
97b8518356
@ -79,6 +79,7 @@ virStorageEncryptionPtr virStorageEncryptionCopy(const virStorageEncryption *src
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
||||
void virStorageEncryptionFree(virStorageEncryptionPtr enc);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virStorageEncryption, virStorageEncryptionFree);
|
||||
|
||||
virStorageEncryptionPtr virStorageEncryptionParseNode(xmlNodePtr node,
|
||||
xmlXPathContextPtr ctxt);
|
||||
|
Loading…
Reference in New Issue
Block a user