[libvirt] [libvirt-python PATCHv2 41/44] virDomainCreateXMLWithFiles and virDomainCreateWithFiles APIs appeared in 1.1.1

Doug Goldstein cardoe at cardoe.com
Tue Nov 19 19:36:00 UTC 2013


virDomainCreateXMLWithFiles() and virDomainCreateWithFiles() were not
added to libvirt until 1.1.1
---
 libvirt-override.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libvirt-override.c b/libvirt-override.c
index 6bd5138..32d1a4a 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -7176,6 +7176,7 @@ error:
 #endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
 
 
+#if LIBVIR_CHECK_VERSION(1, 1, 1)
 static PyObject *
 libvirt_virDomainCreateWithFiles(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
     PyObject *py_retval = NULL;
@@ -7265,6 +7266,7 @@ cleanup:
     VIR_FREE(files);
     return py_retval;
 }
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
 
 
 /************************************************************************
@@ -7439,8 +7441,10 @@ static PyMethodDef libvirtMethods[] = {
 #if LIBVIR_CHECK_VERSION(1, 0, 0)
     {(char *) "virNodeGetCPUMap", libvirt_virNodeGetCPUMap, METH_VARARGS, NULL},
 #endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
+#if LIBVIR_CHECK_VERSION(1, 1, 1)
     {(char *) "virDomainCreateXMLWithFiles", libvirt_virDomainCreateXMLWithFiles, METH_VARARGS, NULL},
     {(char *) "virDomainCreateWithFiles", libvirt_virDomainCreateWithFiles, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
     {NULL, NULL, 0, NULL}
 };
 
-- 
1.8.3.2




More information about the libvir-list mailing list