summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2013-11-19 10:44:47 -0600
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:06 +0000
commitcfe670927e0fcc240df0f24f7d13666b40b457fe (patch)
treef4110fd4bc44fc2b3ebb8ff83525156b3a1f676d
parent23e65b47e1d9fa81417298882d6eebbf988a7c0e (diff)
downloadlibvirt-python-v9-cfe670927e0fcc240df0f24f7d13666b40b457fe.zip
libvirt-python-v9-cfe670927e0fcc240df0f24f7d13666b40b457fe.tar.gz
libvirt-python-v9-cfe670927e0fcc240df0f24f7d13666b40b457fe.tar.xz
virConnect{Unr,R}egisterCloseCallback API appeared in 0.10.0
-rw-r--r--libvirt-override.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index e3b781d..49068ca 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6455,7 +6455,7 @@ libvirt_virConnectDomainEventDeregisterAny(ATTRIBUTE_UNUSED PyObject * self,
return py_retval;
}
-
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
static void
libvirt_virConnectCloseCallbackDispatch(virConnectPtr conn ATTRIBUTE_UNUSED,
int reason,
@@ -6559,6 +6559,7 @@ libvirt_virConnectUnregisterCloseCallback(ATTRIBUTE_UNUSED PyObject * self,
py_retval = libvirt_intWrap(ret);
return py_retval;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
static void
libvirt_virStreamEventFreeFunc(void *opaque)
@@ -7242,8 +7243,10 @@ static PyMethodDef libvirtMethods[] = {
{(char *) "virConnectDomainEventDeregister", libvirt_virConnectDomainEventDeregister, METH_VARARGS, NULL},
{(char *) "virConnectDomainEventRegisterAny", libvirt_virConnectDomainEventRegisterAny, METH_VARARGS, NULL},
{(char *) "virConnectDomainEventDeregisterAny", libvirt_virConnectDomainEventDeregisterAny, METH_VARARGS, NULL},
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
{(char *) "virConnectRegisterCloseCallback", libvirt_virConnectRegisterCloseCallback, METH_VARARGS, NULL},
{(char *) "virConnectUnregisterCloseCallback", libvirt_virConnectUnregisterCloseCallback, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
{(char *) "virStreamEventAddCallback", libvirt_virStreamEventAddCallback, METH_VARARGS, NULL},
{(char *) "virStreamRecv", libvirt_virStreamRecv, METH_VARARGS, NULL},
{(char *) "virStreamSend", libvirt_virStreamSend, METH_VARARGS, NULL},