diff options
author | Peter Krempa <pkrempa@redhat.com> | 2016-09-19 13:54:37 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2016-09-19 17:19:43 +0200 |
commit | 0061566872ed3fdf7b0ec101c20d3ddb78093a06 (patch) | |
tree | b29d0f8828ecc96a0506516ff59db5ef19f8643f /libvirt-override-api.xml | |
parent | 3e041e5b36b27f047323e9c07989f60a79780266 (diff) | |
download | libvirt-python-0061566872ed3fdf7b0ec101c20d3ddb78093a06.tar.gz |
override: Properly override wrapper for virDomainGetGuestVcpusv2.3.0
Without the change to libvirt-override-api.xml generator.py would
generate the following function header:
def guestVcpus(self, params, nparams, flags=0):
Since @params and @nparams are output-only in C and the python C
implementation actualy creates a dict from them we should not need to
pass them. Add the API definition to drop the two unnecessary args:
def guestVcpus(self, flags=0):
The code did not work at all until this change as the C impl expects
only two arguments but the python required use of four.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1377071
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r-- | libvirt-override-api.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 49de122..50250bc 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -698,5 +698,11 @@ <arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/> <return type='char *' info="dictionary of domain interfaces along with their MAC and IP addresses"/> </function> + <function name='virDomainGetGuestVcpus' file='python'> + <info>returns a dictionary containing information regarding guest vcpus</info> + <arg name='dom' type='virDomainPtr' info='pointer to the domain'/> + <arg name='flags' type='unsigned int' info='extra flags; not used yet, so callers should always pass 0'/> + <return type='int' info="dictionary of vcpu data returned by the guest agent"/> + </function> </symbols> </api> |