summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
diff options
context:
space:
mode:
authorGuannan Ren <gren@redhat.com>2012-09-28 16:27:38 +0800
committerGuannan Ren <gren@redhat.com>2012-10-08 21:53:58 +0800
commitf0b144406d83a37e6029896a6b5ec5ee4023b39d (patch)
treedf0224d2f9ffd2cd0e841ba67c4f2375839b71d8 /typewrappers.c
parentb9355e94901e925dd2ac23935f03ef2385cc262a (diff)
downloadlibvirt-python-v6-f0b144406d83a37e6029896a6b5ec5ee4023b39d.tar.gz
libvirt-python-v6-f0b144406d83a37e6029896a6b5ec5ee4023b39d.tar.xz
libvirt-python-v6-f0b144406d83a37e6029896a6b5ec5ee4023b39d.zip
python: cleanup vcpu related binding APIs
libvirt_virDomainGetVcpus: add error handling, return -1 instead of None libvirt_virDomainPinVcpu and libvirt_virDomainPinVcpuFlags: check the type of argument make use of libvirt_boolUnwrap Set bitmap according to these values which are contained in given argument of vcpu tuple and turn off these bit corresponding to missing vcpus in argument tuple The original way ignored the error info from PyTuple_GetItem if index is out of range. "IndexError: tuple index out of range" The error message will only be raised on next command in interactive mode.
Diffstat (limited to 'typewrappers.c')
0 files changed, 0 insertions, 0 deletions