summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2009-11-12 10:53:26 -0500
committerCole Robinson <crobinso@redhat.com>2009-11-12 10:53:26 -0500
commitd0e7cc1264533d6a6e4ad2a5b9252f97dc96cba3 (patch)
tree3e21b67a1e3932267af472667b0b47ffef90af7d /libvirt-override-api.xml
parentbdb9c70e015181fba5f974cf233ceccbe29f1307 (diff)
downloadlibvirt-python-split-d0e7cc1264533d6a6e4ad2a5b9252f97dc96cba3.tar.gz
libvirt-python-split-d0e7cc1264533d6a6e4ad2a5b9252f97dc96cba3.tar.xz
libvirt-python-split-d0e7cc1264533d6a6e4ad2a5b9252f97dc96cba3.zip
Add virConnectGetLibvirtVersion API
There is currently no way to determine the libvirt version of a remote libvirtd we are connected to. This is a useful piece of data to enable feature detection.
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 148b89b..4e55182 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="virConnectGetLibVersion" file='python'>
+ <info>Returns the libvirt 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="virConnectListDomainsID" file='python'>
<info>Returns the list of the ID of the domains on the hypervisor</info>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>