[libvirt-python PATCHv2 25/44] virDomainGetCPUStats 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 7ab9013..dbf45cc 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -526,6 +526,7 @@ cleanup:
     return ret;
 }
 
+#if LIBVIR_CHECK_VERSION(0, 9, 10)
 static PyObject *
 libvirt_virDomainGetCPUStats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
 {
@@ -661,6 +662,7 @@ error:
     Py_DECREF(ret);
     return error;
 }
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 10) */
 
 static PyObject *
 libvirt_virDomainInterfaceStats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
@@ -7269,7 +7271,9 @@ static PyMethodDef libvirtMethods[] = {
     {(char *) "virNetworkGetAutostart", libvirt_virNetworkGetAutostart, METH_VARARGS, NULL},
     {(char *) "virDomainBlockStats", libvirt_virDomainBlockStats, METH_VARARGS, NULL},
     {(char *) "virDomainBlockStatsFlags", libvirt_virDomainBlockStatsFlags, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 10)
     {(char *) "virDomainGetCPUStats", libvirt_virDomainGetCPUStats, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 10) */
     {(char *) "virDomainInterfaceStats", libvirt_virDomainInterfaceStats, METH_VARARGS, NULL},
     {(char *) "virDomainMemoryStats", libvirt_virDomainMemoryStats, METH_VARARGS, NULL},
     {(char *) "virNodeGetCellsFreeMemory", libvirt_virNodeGetCellsFreeMemory, 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]