mirror of https://gitee.com/openkylin/libvirt.git
domain_conf.h: add autoptr cleanup func to virDomainXMLOptionPtr
This will enable code cleanups on code that still relies on virObjectUnref() this pointer manually. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
a0ae3bd5d7
commit
d103db0460
|
@ -3214,6 +3214,7 @@ struct _virDomainXMLOption {
|
|||
/* Snapshot postparse callbacks */
|
||||
virDomainMomentPostParseCallback momentPostParse;
|
||||
};
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainXMLOption, virObjectUnref);
|
||||
|
||||
struct virDomainDefPostParseDeviceIteratorData {
|
||||
virDomainXMLOption *xmlopt;
|
||||
|
|
Loading…
Reference in New Issue