summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorTaizo ITO <taizo.ito@hde.co.jp>2010-01-22 11:01:09 +0100
committerDaniel Veillard <veillard@redhat.com>2010-01-22 11:01:09 +0100
commit2d35af171a2e7c5eb6ce7e7c2bd90cacb4ab0ce6 (patch)
treee45a853a79b930bdc2d8f39fb7541761e5172d0f /libvirt-override-api.xml
parentce52d4541a4467d200c5c317d2be5d31aa6a0537 (diff)
downloadlibvirt-python-v6-2d35af171a2e7c5eb6ce7e7c2bd90cacb4ab0ce6.tar.gz
libvirt-python-v6-2d35af171a2e7c5eb6ce7e7c2bd90cacb4ab0ce6.tar.xz
libvirt-python-v6-2d35af171a2e7c5eb6ce7e7c2bd90cacb4ab0ce6.zip
Add virConnectGetVersion Python APIv0.7.6
adds a new python API call for retrieving the running hypervisor version used by a connection: virConnectGetVersion * python/generator.py: skip virConnectGetVersion from autogenerated * python/libvirt-override-api.xml python/libvirt-override.c: define direct native bindings
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index 6ae2742..3d8f46c 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -1,6 +1,11 @@
<?xml version="1.0"?>
<api name='libvir-python'>
<symbols>
+ <function name="virConnectGetVersion" file='python'>
+ <info>Returns the running hypervisor version of the connection host</info>
+ <arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
+ <return type='int' info="0 on success, -1 on error"/>
+ </function>
<function name="virConnectGetLibVersion" file='python'>
<info>Returns the libvirt version of the connection host</info>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>