summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 10:47:48 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 14:45:48 +0000
commitc3fe6c5fe28d9e68167009fffa18a2dbda34d5a4 (patch)
tree9cfe29f0bc3ef46bdc6ebbc50116e1e3c0a5fdb2
parentc4aecfa6e5dcbd2189563c26132fbccbdaaae342 (diff)
downloadlibvirt-python-v8-c3fe6c5fe28d9e68167009fffa18a2dbda34d5a4.tar.gz
libvirt-python-v8-c3fe6c5fe28d9e68167009fffa18a2dbda34d5a4.tar.xz
libvirt-python-v8-c3fe6c5fe28d9e68167009fffa18a2dbda34d5a4.zip
virDomainPinEmulator and virDomainGetEmulatorPinInfo APIs appeared in 0.10.0
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 6613aa0..19b42a2 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -1824,6 +1824,7 @@ cleanup:
}
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
static PyObject *
libvirt_virDomainPinEmulator(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -1938,6 +1939,7 @@ libvirt_virDomainGetEmulatorPinInfo(PyObject *self ATTRIBUTE_UNUSED,
VIR_FREE(cpumap);
return pycpumap;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
/************************************************************************
@@ -7299,8 +7301,10 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virDomainPinVcpu", libvirt_virDomainPinVcpu, METH_VARARGS, NULL},
{(char *) "virDomainPinVcpuFlags", libvirt_virDomainPinVcpuFlags, METH_VARARGS, NULL},
{(char *) "virDomainGetVcpuPinInfo", libvirt_virDomainGetVcpuPinInfo, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
{(char *) "virDomainGetEmulatorPinInfo", libvirt_virDomainGetEmulatorPinInfo, METH_VARARGS, NULL},
{(char *) "virDomainPinEmulator", libvirt_virDomainPinEmulator, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
{(char *) "virConnectListStoragePools", libvirt_virConnectListStoragePools, METH_VARARGS, NULL},
{(char *) "virConnectListDefinedStoragePools", libvirt_virConnectListDefinedStoragePools, METH_VARARGS, NULL},
{(char *) "virConnectListAllStoragePools", libvirt_virConnectListAllStoragePools, METH_VARARGS, NULL},