summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-18 15:48:56 -0500
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:07 +0000
commit33b2b09b7ff14312ce688c34ce0200c412a753a5 (patch)
treefecc67c0b0e33b7ff6b7e1820452298910060f73
parentf721af9e54c19444bd6a5a5410bbb5366ccd74c2 (diff)
downloadlibvirt-python-v9-33b2b09b7ff14312ce688c34ce0200c412a753a5.zip
libvirt-python-v9-33b2b09b7ff14312ce688c34ce0200c412a753a5.tar.gz
libvirt-python-v9-33b2b09b7ff14312ce688c34ce0200c412a753a5.tar.xz
virDomainCreateXMLWithFiles and virDomainCreateWithFiles APIs appeared in 1.1.1
virDomainCreateXMLWithFiles() and virDomainCreateWithFiles() were not added to libvirt until 1.1.1
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index f4d799b..5f392c0 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -7171,6 +7171,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;
@@ -7260,6 +7261,7 @@ cleanup:
VIR_FREE(files);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
/************************************************************************
@@ -7422,8 +7424,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}
};