[dbus PATCH 02/10] GetVcpus API method: Renamed to GetVcpusFlags

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

 



Same for internal virtDBusDomainGetVcpus:
Renamed to virtDBusDomainGetVcpusFlags

Following naming from libvirt API.

Signed-off-by: Katerina Koukiou <kkoukiou@xxxxxxxxxx>
---
 data/org.libvirt.Domain.xml |  2 +-
 src/domain.c                | 17 ++++++++---------
 test/test_domain.py         |  2 +-
 3 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml
index 1ecf826..46cc8a7 100644
--- a/data/org.libvirt.Domain.xml
+++ b/data/org.libvirt.Domain.xml
@@ -11,7 +11,7 @@
     <property name="Persistent" type="b" access="read"/>
     <property name="State" type="s" access="read"/>
     <property name="Autostart" type="b" access="read"/>
-    <method name="GetVcpus">
+    <method name="GetVcpusFlags">
       <arg name="flags" type="u" direction="in"/>
       <arg name="vcpus" type="u" direction="out"/>
     </method>
diff --git a/src/domain.c b/src/domain.c
index 09b3440..333b5e8 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -219,14 +219,13 @@ virtDBusDomainGetAutostart(const gchar *objectPath,
 }
 
 static void
-virtDBusDomainGetVcpus(GVariant *inArgs,
-                       GUnixFDList *inFDs G_GNUC_UNUSED,
-                       const gchar *objectPath,
-                       gpointer userData,
-                       GVariant **outArgs,
-                       GUnixFDList **outFDs G_GNUC_UNUSED,
-                       GError **error)
-
+virtDBusDomainGetVcpusFlags(GVariant *inArgs,
+                            GUnixFDList *inFDs G_GNUC_UNUSED,
+                            const gchar *objectPath,
+                            gpointer userData,
+                            GVariant **outArgs,
+                            GUnixFDList **outFDs G_GNUC_UNUSED,
+                            GError **error)
 {
     virtDBusConnect *connect = userData;
     g_autoptr(virDomain) domain = NULL;
@@ -451,7 +450,7 @@ static virtDBusGDBusPropertyTable virtDBusDomainPropertyTable[] = {
 };
 
 static virtDBusGDBusMethodTable virtDBusDomainMethodTable[] = {
-    { "GetVcpus", virtDBusDomainGetVcpus },
+    { "GetVcpusFlags", virtDBusDomainGetVcpusFlags },
     { "GetXMLDesc", virtDBusDomainGetXMLDesc },
     { "GetStats", virtDBusDomainGetStats },
     { "Shutdown", virtDBusDomainShutdown },
diff --git a/test/test_domain.py b/test/test_domain.py
index 22039dc..c7f9ca2 100755
--- a/test/test_domain.py
+++ b/test/test_domain.py
@@ -28,7 +28,7 @@ class TestDomain(libvirttest.BaseTestClass):
 
         xml = domain.GetXMLDesc(0)
         assert isinstance(xml, dbus.String)
-        vcpus = domain.GetVcpus(0)
+        vcpus = domain.GetVcpusFlags(0)
         assert isinstance(vcpus, dbus.UInt32)
 
         domain.Reboot(0)
-- 
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