summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 10:41:01 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:07 +0000
commit38b2d9304f75bb24aad6ced69bb3fa4dcf32181a (patch)
tree36b8dd8f64f5a5ca9055acc2631d7ec04ae8678d
parentf55e27f21020c1b8d894965ae707001be9ac036a (diff)
downloadlibvirt-python-v9-38b2d9304f75bb24aad6ced69bb3fa4dcf32181a.tar.gz
libvirt-python-v9-38b2d9304f75bb24aad6ced69bb3fa4dcf32181a.tar.xz
libvirt-python-v9-38b2d9304f75bb24aad6ced69bb3fa4dcf32181a.zip
virStoragePoolListAllVolumes API appeared in 0.10.2
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index c439403..1894c97 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -3569,6 +3569,7 @@ libvirt_virStoragePoolListVolumes(PyObject *self ATTRIBUTE_UNUSED,
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(0, 10, 2)
static PyObject *
libvirt_virStoragePoolListAllVolumes(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -3616,6 +3617,7 @@ cleanup:
VIR_FREE(vols);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 2) */
static PyObject *
@@ -7328,7 +7330,9 @@ static PyMethodDef libvirtMethods[] = {
#endif /* LIBVIR_CHECK_VERSION(0, 10, 2) */
{(char *) "virStoragePoolGetAutostart", libvirt_virStoragePoolGetAutostart, METH_VARARGS, NULL},
{(char *) "virStoragePoolListVolumes", libvirt_virStoragePoolListVolumes, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 10, 2)
{(char *) "virStoragePoolListAllVolumes", libvirt_virStoragePoolListAllVolumes, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 2) */
{(char *) "virStoragePoolGetInfo", libvirt_virStoragePoolGetInfo, METH_VARARGS, NULL},
{(char *) "virStorageVolGetInfo", libvirt_virStorageVolGetInfo, METH_VARARGS, NULL},
{(char *) "virStoragePoolGetUUID", libvirt_virStoragePoolGetUUID, METH_VARARGS, NULL},