[dbus PATCH 4/8] Move definition for g_autoptr virDomainStatsRecordPtr to util.h

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

 



We be reused in connect.c

Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx>
---
 src/domain.c | 2 --
 src/util.h   | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/domain.c b/src/domain.c
index 6c44377..010758b 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -1017,8 +1017,6 @@ virtDBusDomainGetSchedulerParameters(GVariant *inArgs,
     *outArgs = g_variant_new_tuple(&grecords, 1);
 }
 
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainStatsRecordPtr, virDomainStatsRecordListFree);
-
 static void
 virtDBusDomainGetStats(GVariant *inArgs,
                        GUnixFDList *inFDs G_GNUC_UNUSED,
diff --git a/src/util.h b/src/util.h
index 7bb4ad6..5141172 100644
--- a/src/util.h
+++ b/src/util.h
@@ -38,6 +38,8 @@ virtDBusUtilVirDomainListFree(virDomainPtr *domains);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomain, virDomainFree);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainPtr, virtDBusUtilVirDomainListFree);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virDomainStatsRecordPtr, virDomainStatsRecordListFree);
+
 gint
 virtDBusUtilEnumFromString(const gchar *const *types,
                            guint ntypes,
-- 
2.15.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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