[PATCH 5/7] domain_conf.h: add autoptr cleanup func to virDomainXMLOptionPtr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will enable code cleanups on code that still relies on
virObjectUnref() this pointer manually.

Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx>
---
 src/conf/domain_conf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index ab9a7d66f8..0ecd3803db 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -3214,6 +3214,7 @@ struct _virDomainXMLOption {
     /* Snapshot postparse callbacks */
     virDomainMomentPostParseCallback momentPostParse;
 };
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainXMLOption, virObjectUnref);
 
 struct virDomainDefPostParseDeviceIteratorData {
     virDomainXMLOption *xmlopt;
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux