[libvirt] [libvirt-python PATCH 01/23] update virDomainGetVcpus xml API description

Pavel Hrdina phrdina at redhat.com
Thu Sep 24 14:01:38 UTC 2015


Python api returns a tuple with the vcpus information.

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 libvirt-override-api.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index d1a9c26..1a0e314 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -239,8 +239,8 @@
       <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
     </function>
     <function name='virDomainGetVcpus' file='python'>
-      <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps if this pointer is'nt NULL.</info>
-      <return type='int' info='the number of info filled in case of success, -1 in case of failure.'/>
+      <info>Extract information about virtual CPUs of domain, store it in info array and also in cpumaps.</info>
+      <return type='char *' info='None in case of error, returns a tuple of vcpu info and vcpu map.'/>
       <arg name='domain' type='virDomainPtr' info='pointer to domain object, or NULL for Domain0'/>
     </function>
     <function name='virDomainPinVcpu' file='python'>
-- 
2.5.3




More information about the libvir-list mailing list