summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-09-04 23:32:58 +0800
committerOsier Yang <jyang@redhat.com>2012-09-10 10:41:18 +0800
commit9b64533be6efc412f6daf9461a3fc0301c351be3 (patch)
treeab3a018eaaaf11ac61512426a31273f607138a1c /libvirt-override-api.xml
parentcc4225c8aceaeb0be9b7a04393f780ecc67ad5f4 (diff)
downloadlibvirt-python-split-9b64533be6efc412f6daf9461a3fc0301c351be3.tar.gz
libvirt-python-split-9b64533be6efc412f6daf9461a3fc0301c351be3.tar.xz
libvirt-python-split-9b64533be6efc412f6daf9461a3fc0301c351be3.zip
list: Expose virStoragePoolListAllVolumes 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-virStoragePool.py: * New file, includes implementation of listAllVolumes. python/libvirt-override.c: Implementation for the wrapper.
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index d16755c..8a228fb 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -315,7 +315,13 @@
<function name='virStoragePoolListVolumes' file='python'>
<info>list the storage volumes, stores the pointers to the names in @names</info>
<arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
- <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='virStoragePoolListAllVolumes' file='python'>
+ <info>return list of storage volume objects</info>
+ <arg name='pool' type='virStoragePoolPtr' info='pointer to the storage pool'/>
+ <arg name='flags' type='unsigned int' info='optional flags'/>
+ <return type='volume *' info='the list of volumes or None in case of error'/>
</function>
<function name='virStoragePoolGetInfo' file='python'>
<info>Extract information about a storage pool. Note that if the connection used to get the domain is limited only a partial set of the information can be extracted.</info>