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 15:58:06 +0000
commit6a050c8f43dbf3809ebe1c6dfc36f63844de4dca (patch)
treea43b6e728194243b5e1826cb5916440cd3fb9d41
parentbebe13660fedb63c0c7bc52522e2e96ed9756b1b (diff)
downloadlibvirt-python-v9-6a050c8f43dbf3809ebe1c6dfc36f63844de4dca.zip
libvirt-python-v9-6a050c8f43dbf3809ebe1c6dfc36f63844de4dca.tar.gz
libvirt-python-v9-6a050c8f43dbf3809ebe1c6dfc36f63844de4dca.tar.xz
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 e14ca26..4b728ef 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},