summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-09-05 13:34:11 +0800
committerOsier Yang <jyang@redhat.com>2012-09-17 10:41:03 +0800
commitc9f08903d4bc4ebada4280781ea41fa61f5e8b2d (patch)
treea4c3868938f19835f3a567214827b9f7ffe5c943 /libvirt-override-api.xml
parentcb41d86c6c79dac1ab6440a5ce49945e09b0322d (diff)
downloadlibvirt-python-split-c9f08903d4bc4ebada4280781ea41fa61f5e8b2d.tar.gz
libvirt-python-split-c9f08903d4bc4ebada4280781ea41fa61f5e8b2d.tar.xz
libvirt-python-split-c9f08903d4bc4ebada4280781ea41fa61f5e8b2d.zip
list: Expose virConnectListAllNodeDevices 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: * Implementation for listAllNodeDevices. 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 ab6f407..a3d6bbb 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -346,6 +346,12 @@
<arg name='flags' type='unsigned int' info='flags (unused; pass 0)'/>
<return type='str *' info='the list of Names or None in case of error'/>
</function>
+ <function name='virConnectListAllNodeDevices' file='python'>
+ <info>returns list of all host node devices</info>
+ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
+ <arg name='flags' type='unsigned int' info='optional flags'/>
+ <return type='device *' info='the list of host node device or None in case of error'/>
+ </function>
<function name='virNodeDeviceListCaps' file='python'>
<info>list the node device's capabilities</info>
<arg name='dev' type='virNodeDevicePtr' info='pointer to the node device'/>