Define G_DEFINE_AUTOPTR_CLEANUP_FUNC for virDomainCheckpointDef

Allow g_autoptr to be used instead of VIR_AUTOUNREF.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko 2019-10-15 14:47:50 +02:00
parent 45678bd70a
commit df4986b51b
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ struct _virDomainCheckpointDef {
virDomainCheckpointDiskDef *disks;
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainCheckpointDef, virObjectUnref);
typedef enum {
VIR_DOMAIN_CHECKPOINT_PARSE_REDEFINE = 1 << 0,