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 15:58:06 +0000
commit23e65b47e1d9fa81417298882d6eebbf988a7c0e (patch)
treee615775d557cb716fa1e303acd1f557824450be5
parent0ee14795fd29a11e2faeec1a196717084d72ed7f (diff)
downloadlibvirt-python-v9-23e65b47e1d9fa81417298882d6eebbf988a7c0e.zip
libvirt-python-v9-23e65b47e1d9fa81417298882d6eebbf988a7c0e.tar.gz
libvirt-python-v9-23e65b47e1d9fa81417298882d6eebbf988a7c0e.tar.xz
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 fd16916..e3b781d 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},