summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 11:11:31 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 13:37:31 +0000
commitd288a42ae7498ff72be73f7c05febf9d6ff3ef60 (patch)
tree98449f58831a230e1d244ec202ab1d115ed5b466
parent2d5364d87058eb59ee3b9a23847bfef63a76b9d2 (diff)
downloadlibvirt-python-v7-d288a42ae7498ff72be73f7c05febf9d6ff3ef60.tar.gz
libvirt-python-v7-d288a42ae7498ff72be73f7c05febf9d6ff3ef60.tar.xz
libvirt-python-v7-d288a42ae7498ff72be73f7c05febf9d6ff3ef60.zip
virDomainSnapshotListAllChildren 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 f5180a5..b3666a3 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -2648,6 +2648,7 @@ cleanup:
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(0, 9, 13)
static PyObject *
libvirt_virDomainSnapshotListAllChildren(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -2693,6 +2694,7 @@ cleanup:
VIR_FREE(snaps);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 13) */
static PyObject *
libvirt_virDomainRevertToSnapshot(PyObject *self ATTRIBUTE_UNUSED,
@@ -7333,7 +7335,9 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainListAllSnapshots", libvirt_virDomainListAllSnapshots, METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(0, 9, 13) */
{(char *) "virDomainSnapshotListChildrenNames", libvirt_virDomainSnapshotListChildrenNames, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 13)
{(char *) "virDomainSnapshotListAllChildren", libvirt_virDomainSnapshotListAllChildren, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 13) */
{(char *) "virDomainRevertToSnapshot", libvirt_virDomainRevertToSnapshot, METH_VARARGS, NULL},
{(char *) "virDomainGetBlockJobInfo", libvirt_virDomainGetBlockJobInfo, METH_VARARGS, NULL},
{(char *) "virDomainSetBlockIoTune", libvirt_virDomainSetBlockIoTune, METH_VARARGS, NULL},