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 b20af57..fa8b94c 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -7130,6 +7130,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;
@@ -7219,6 +7220,7 @@ cleanup:
VIR_FREE(files);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(1,1,1) */
/************************************************************************
@@ -7351,8 +7353,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