[libvirt-python PATCHv2 26/44] virDomainGetDiskErrors API appeared in 0.9.10

[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 dbf45cc..cccfac5 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -4766,6 +4766,7 @@ cleanup:
 }
 #endif /* LIBVIR_CHECK_VERSION(0, 9, 8) */
 
+#if LIBVIR_CHECK_VERSION(0, 9, 10)
 static PyObject *
 libvirt_virDomainGetDiskErrors(PyObject *self ATTRIBUTE_UNUSED,
                                PyObject *args)
@@ -4818,6 +4819,7 @@ cleanup:
     }
     return py_retval;
 }
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 10) */
 
 /*******************************************
  * Helper functions to avoid importing modules
@@ -7356,7 +7358,9 @@ static PyMethodDef libvirtMethods[] = {
     {(char *) "virDomainMigrateToURI3", libvirt_virDomainMigrateToURI3, METH_VARARGS, NULL},
     {(char *) "virDomainBlockPeek", libvirt_virDomainBlockPeek, METH_VARARGS, NULL},
     {(char *) "virDomainMemoryPeek", libvirt_virDomainMemoryPeek, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 10)
     {(char *) "virDomainGetDiskErrors", libvirt_virDomainGetDiskErrors, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 10) */
     {(char *) "virNodeGetMemoryParameters", libvirt_virNodeGetMemoryParameters, METH_VARARGS, NULL},
     {(char *) "virNodeSetMemoryParameters", libvirt_virNodeSetMemoryParameters, METH_VARARGS, NULL},
     {(char *) "virNodeGetCPUMap", libvirt_virNodeGetCPUMap, 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]