summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 10:36:42 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:07 +0000
commitf55e27f21020c1b8d894965ae707001be9ac036a (patch)
tree6c8d78d792d9c92b8d7662bdc1a4738bb0f9ef9e
parentf13a882e002bc01e6c2055a1b8b555b6bdc7fec1 (diff)
downloadlibvirt-python-v9-f55e27f21020c1b8d894965ae707001be9ac036a.zip
libvirt-python-v9-f55e27f21020c1b8d894965ae707001be9ac036a.tar.gz
libvirt-python-v9-f55e27f21020c1b8d894965ae707001be9ac036a.tar.xz
virNode{Get,Set}MemoryParameters API appeared in 0.10.2
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 0311579..c439403 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6960,6 +6960,7 @@ cleanup:
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(0, 10, 2)
static PyObject *
libvirt_virNodeSetMemoryParameters(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -7079,6 +7080,7 @@ cleanup:
virTypedParamsFree(params, nparams);
return ret;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 2) */
static PyObject *
libvirt_virNodeGetCPUMap(PyObject *self ATTRIBUTE_UNUSED,
@@ -7386,8 +7388,10 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainBlockPeek", libvirt_virDomainBlockPeek, METH_VARARGS, NULL},
{(char *) "virDomainMemoryPeek", libvirt_virDomainMemoryPeek, METH_VARARGS, NULL},
{(char *) "virDomainGetDiskErrors", libvirt_virDomainGetDiskErrors, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 10, 2)
{(char *) "virNodeGetMemoryParameters", libvirt_virNodeGetMemoryParameters, METH_VARARGS, NULL},
{(char *) "virNodeSetMemoryParameters", libvirt_virNodeSetMemoryParameters, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 2) */
{(char *) "virNodeGetCPUMap", libvirt_virNodeGetCPUMap, METH_VARARGS, NULL},
{(char *) "virDomainCreateXMLWithFiles", libvirt_virDomainCreateXMLWithFiles, METH_VARARGS, NULL},
{(char *) "virDomainCreateWithFiles", libvirt_virDomainCreateWithFiles, METH_VARARGS, NULL},