summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-09-05 00:10:19 +0800
committerOsier Yang <jyang@redhat.com>2012-09-12 15:37:09 +0800
commitb286824eee96095ba18b44339e8d33e8eb367d6a (patch)
tree3bf4d29509fcd14efb85f775358c45aa0fdc30b8 /libvirt-override-api.xml
parentc3a037d4129e360d608e29329ede93318cc0ce19 (diff)
downloadlibvirt-python-split-b286824eee96095ba18b44339e8d33e8eb367d6a.tar.gz
libvirt-python-split-b286824eee96095ba18b44339e8d33e8eb367d6a.tar.xz
libvirt-python-split-b286824eee96095ba18b44339e8d33e8eb367d6a.zip
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.xml6
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.'/>