summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2012-05-20 16:20:11 +0200
committerPeter Krempa <pkrempa@redhat.com>2012-06-18 21:24:13 +0200
commit3e25987d1a4cef5074e880af1d63a5d0d229e352 (patch)
tree99dc1e2a5e4817c1a3c9f992beff6492baf1d5b0 /libvirt-override-api.xml
parent810969da9f9ec60bffe23b66dcf6569dacf1c52e (diff)
downloadlibvirt-python-v6-3e25987d1a4cef5074e880af1d63a5d0d229e352.tar.gz
libvirt-python-v6-3e25987d1a4cef5074e880af1d63a5d0d229e352.tar.xz
libvirt-python-v6-3e25987d1a4cef5074e880af1d63a5d0d229e352.zip
python: add API exports for virConnectListAllDomains()
This patch adds export of the new API function virConnectListAllDomains() to the libvirt-python bindings. The virConnect object now has method "listAllDomains" that takes only the flags parameter and returns a python list of virDomain object corresponding to virDomainPtrs returned by the underlying api. The implementation is done manually as the generator does not support wrapping list of virDomainPtrs into virDomain objects.
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index 0bafd21..2fd6dec 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -19,17 +19,23 @@
<function name='virConnectListDefinedDomains' file='python'>
<info>list the defined domains, stores the pointers to the names in @names</info>
<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'/>
+ <return type='str *' info='the list of Names or None in case of error'/>
+ </function>
+ <function name='virConnectListAllDomains' file='python'>
+ <info>returns list of all defined domains</info>
+ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
+ <arg name='flags' type='unsigned int' info='optional flags'/>
+ <return type='domain *' info='the list of domains or None in case of error'/>
</function>
<function name='virConnectListNetworks' file='python'>
<info>list the networks, stores the pointers to the names in @names</info>
<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'/>
+ <return type='str *' info='the list of Names or None in case of error'/>
</function>
<function name='virConnectListDefinedNetworks' file='python'>
<info>list the defined networks, stores the pointers to the names in @names</info>
<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'/>
+ <return type='str *' info='the list of Names 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>