summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-09-04 23:55:21 +0800
committerOsier Yang <jyang@redhat.com>2012-09-11 18:35:14 +0800
commit4b8444d8921c9276e0ae638cad2a07ea2df5879e (patch)
treea7ee490d85f5332c3444a456e35eb9d2cf67692e /libvirt-override-api.xml
parent849f4b05c2842fab80a4f5e828d0127bc87865d9 (diff)
downloadlibvirt-python-v6-4b8444d8921c9276e0ae638cad2a07ea2df5879e.tar.gz
libvirt-python-v6-4b8444d8921c9276e0ae638cad2a07ea2df5879e.tar.xz
libvirt-python-v6-4b8444d8921c9276e0ae638cad2a07ea2df5879e.zip
list: Expose virConnectListAllNetworks to Python binding
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: Implement listAllNetworks. 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 8a228fb..5f51fc7 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -37,6 +37,12 @@
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
<return type='str *' info='the list of Names or None in case of error'/>
</function>
+ <function name='virConnectListAllNetworks' file='python'>
+ <info>returns list of all networks</info>
+ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
+ <arg name='flags' type='unsigned int' info='optional flags'/>
+ <return type='network *' info='the list of networks or None in case of error'/>
+ </function>
<function name='virDomainLookupByUUID' file='python'>
<info>Try to lookup a domain on the given hypervisor based on its UUID.</info>
<return type='virDomainPtr' info='a new domain object or NULL in case of failure'/>