[libvirt-python PATCHv2 23/44] virDomain{Get, Set}InterfaceParameters APIs appeared in 0.9.9

[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 4aaef4e..051b7cd 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -1384,6 +1384,7 @@ cleanup:
     return ret;
 }
 
+#if LIBVIR_CHECK_VERSION(0, 9, 9)
 static PyObject *
 libvirt_virDomainSetInterfaceParameters(PyObject *self ATTRIBUTE_UNUSED,
                                         PyObject *args)
@@ -1505,6 +1506,7 @@ cleanup:
     virTypedParamsFree(params, nparams);
     return ret;
 }
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 9) */
 
 static PyObject *
 libvirt_virDomainGetVcpus(PyObject *self ATTRIBUTE_UNUSED,
@@ -7280,8 +7282,10 @@ static PyMethodDef libvirtMethods[] = {
     {(char *) "virDomainGetMemoryParameters", libvirt_virDomainGetMemoryParameters, METH_VARARGS, NULL},
     {(char *) "virDomainSetNumaParameters", libvirt_virDomainSetNumaParameters, METH_VARARGS, NULL},
     {(char *) "virDomainGetNumaParameters", libvirt_virDomainGetNumaParameters, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 9, 9)
     {(char *) "virDomainSetInterfaceParameters", libvirt_virDomainSetInterfaceParameters, METH_VARARGS, NULL},
     {(char *) "virDomainGetInterfaceParameters", libvirt_virDomainGetInterfaceParameters, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 9, 9) */
     {(char *) "virDomainGetVcpus", libvirt_virDomainGetVcpus, METH_VARARGS, NULL},
     {(char *) "virDomainPinVcpu", libvirt_virDomainPinVcpu, METH_VARARGS, NULL},
     {(char *) "virDomainPinVcpuFlags", libvirt_virDomainPinVcpuFlags, 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]