diff options
author | Osier Yang <jyang@redhat.com> | 2012-09-05 00:10:19 +0800 |
---|---|---|
committer | Osier Yang <jyang@redhat.com> | 2012-09-12 15:37:09 +0800 |
commit | b286824eee96095ba18b44339e8d33e8eb367d6a (patch) | |
tree | 3bf4d29509fcd14efb85f775358c45aa0fdc30b8 /libvirt-override-api.xml | |
parent | c3a037d4129e360d608e29329ede93318cc0ce19 (diff) | |
download | libvirt-python-b286824eee96095ba18b44339e8d33e8eb367d6a.tar.gz |
list: Expose virConnectListAllInterfaces to Python bindingCVE-2012-4423
The implementation is done manually as the generator does not support
wrapping lists of C pointers into Python objects.
python/libvirt-override-api.xml: Document
python/libvirt-override-virConnect.py:
* New file, includes implementation of listAllInterfaces.
python/libvirt-override.c: Implementation for the wrapper.
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 5f51fc7..ab6f407 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -416,6 +416,12 @@ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> <return type='str *' info='the list of Names of None in case of error'/> </function> + <function name='virConnectListAllInterfaces' file='python'> + <info>returns list of all interfaces</info> + <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/> + <arg name='flags' type='unsigned int' info='optional flags'/> + <return type='interface *' info='the list of interfaces or None in case of error'/> + </function> <function name='virConnectBaselineCPU' file='python'> <info>Computes the most feature-rich CPU which is compatible with all given host CPUs.</info> <return type='char *' info='XML description of the computed CPU or NULL on error.'/> |