]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virstorageencryption.h: add AUTOPTR_CLEANUP_FUNC for virStorageEncryptionPtr
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 19 Nov 2020 21:03:42 +0000 (18:03 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 1 Dec 2020 22:27:17 +0000 (19:27 -0300)
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>
src/util/virstorageencryption.h

index a107161f0f896ee827265e621b0a11a3056dd04c..05a7bffdfc6fe1c8771939d0d0906ad7f79c5ca6 100644 (file)
@@ -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);