[libvirt-python PATCHv2 21/44] virDomainSnapshotListChildrenNames API appeared in 0.9.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 libvirt-override.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libvirt-override.c b/libvirt-override.c
index 816ef01..9740d1f 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -2589,6 +2589,7 @@ cleanup:
     return py_retval;
 }
 
+#if LIBVIR_CHECK_VERSION(0, 9, 7)
 static PyObject *
 libvirt_virDomainSnapshotListChildrenNames(PyObject *self ATTRIBUTE_UNUSED,
                                            PyObject *args)
@@ -2643,6 +2644,7 @@ cleanup:
     VIR_FREE(names);
     return py_retval;
 }
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 7) */
 
 static PyObject *
 libvirt_virDomainSnapshotListAllChildren(PyObject *self ATTRIBUTE_UNUSED,
@@ -7323,7 +7325,9 @@ static PyMethodDef libvirtMethods[] = {
     {(char *) "virDomainGetJobStats", libvirt_virDomainGetJobStats, METH_VARARGS, NULL},
     {(char *) "virDomainSnapshotListNames", libvirt_virDomainSnapshotListNames, METH_VARARGS, NULL},
     {(char *) "virDomainListAllSnapshots", libvirt_virDomainListAllSnapshots, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 7)
     {(char *) "virDomainSnapshotListChildrenNames", libvirt_virDomainSnapshotListChildrenNames, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 7) */
     {(char *) "virDomainSnapshotListAllChildren", libvirt_virDomainSnapshotListAllChildren, METH_VARARGS, NULL},
     {(char *) "virDomainRevertToSnapshot", libvirt_virDomainRevertToSnapshot, METH_VARARGS, NULL},
     {(char *) "virDomainGetBlockJobInfo", libvirt_virDomainGetBlockJobInfo, METH_VARARGS, NULL},
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]