summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-22 14:12:50 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:06 +0000
commita7651a3284c2794400a02c8498dc16485fd4b0a8 (patch)
tree8d081a2ac40112f5c88f63e2a130df7d0026ecad
parent6a050c8f43dbf3809ebe1c6dfc36f63844de4dca (diff)
downloadlibvirt-python-v9-a7651a3284c2794400a02c8498dc16485fd4b0a8.zip
libvirt-python-v9-a7651a3284c2794400a02c8498dc16485fd4b0a8.tar.gz
libvirt-python-v9-a7651a3284c2794400a02c8498dc16485fd4b0a8.tar.xz
virDomainQemuAgentCommand appeared in 0.10.0
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--libvirt-qemu-override.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c
index 676e8bf..a8e8c09 100644
--- a/libvirt-qemu-override.c
+++ b/libvirt-qemu-override.c
@@ -82,6 +82,7 @@ libvirt_qemu_virDomainQemuMonitorCommand(PyObject *self ATTRIBUTE_UNUSED,
return py_retval;
}
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
static PyObject *
libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject *args)
{
@@ -111,6 +112,8 @@ libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject
VIR_FREE(result);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
+
/************************************************************************
* *
* The registration stuff *
@@ -119,7 +122,9 @@ libvirt_qemu_virDomainQemuAgentCommand(PyObject *self ATTRIBUTE_UNUSED, PyObject
static PyMethodDef libvirtQemuMethods[] = {
#include "build/libvirt-qemu-export.c"
{(char *) "virDomainQemuMonitorCommand", libvirt_qemu_virDomainQemuMonitorCommand, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
{(char *) "virDomainQemuAgentCommand", libvirt_qemu_virDomainQemuAgentCommand, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
{NULL, NULL, 0, NULL}
};