summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 11:06:18 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 13:37:06 +0000
commit41b4e38ecf9732ea08333f9b9174c308c1432c53 (patch)
tree15819d632b0bb1f3500a351d8251eab800913302
parente274dee9d7cb382651518d2ba1a6126d885d47fc (diff)
downloadlibvirt-python-v7-41b4e38ecf9732ea08333f9b9174c308c1432c53.tar.gz
libvirt-python-v7-41b4e38ecf9732ea08333f9b9174c308c1432c53.tar.xz
libvirt-python-v7-41b4e38ecf9732ea08333f9b9174c308c1432c53.zip
virDomainListAllSnapshots API appeared in 0.9.13
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 120a4d3..8ecb34a 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -2543,6 +2543,7 @@ cleanup:
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(0, 9, 13)
static PyObject *
libvirt_virDomainListAllSnapshots(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -2588,6 +2589,7 @@ cleanup:
VIR_FREE(snaps);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 13) */
static PyObject *
libvirt_virDomainSnapshotListChildrenNames(PyObject *self ATTRIBUTE_UNUSED,
@@ -7323,7 +7325,9 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainGetJobInfo", libvirt_virDomainGetJobInfo, METH_VARARGS, NULL},
{(char *) "virDomainGetJobStats", libvirt_virDomainGetJobStats, METH_VARARGS, NULL},
{(char *) "virDomainSnapshotListNames", libvirt_virDomainSnapshotListNames, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 13)
{(char *) "virDomainListAllSnapshots", libvirt_virDomainListAllSnapshots, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 13) */
{(char *) "virDomainSnapshotListChildrenNames", libvirt_virDomainSnapshotListChildrenNames, METH_VARARGS, NULL},
{(char *) "virDomainSnapshotListAllChildren", libvirt_virDomainSnapshotListAllChildren, METH_VARARGS, NULL},
{(char *) "virDomainRevertToSnapshot", libvirt_virDomainRevertToSnapshot, METH_VARARGS, NULL},