summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-21 16:39:43 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 15:58:06 +0000
commitbebe13660fedb63c0c7bc52522e2e96ed9756b1b (patch)
tree400addfb59b9f3011c1a1165fb0dc2c9054884b3
parentcfe670927e0fcc240df0f24f7d13666b40b457fe (diff)
downloadlibvirt-python-v9-bebe13660fedb63c0c7bc52522e2e96ed9756b1b.zip
libvirt-python-v9-bebe13660fedb63c0c7bc52522e2e96ed9756b1b.tar.gz
libvirt-python-v9-bebe13660fedb63c0c7bc52522e2e96ed9756b1b.tar.xz
VIR_DOMAIN_EVENT_ID_BALLOON_CHANGED appeared in 0.10.0
-rw-r--r--libvirt-override.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 49068ca..e14ca26 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6185,6 +6185,8 @@ libvirt_virConnectDomainEventPMSuspendCallback(virConnectPtr conn ATTRIBUTE_UNUS
return ret;
}
+
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
static int
libvirt_virConnectDomainEventBalloonChangeCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
virDomainPtr dom,
@@ -6231,6 +6233,7 @@ libvirt_virConnectDomainEventBalloonChangeCallback(virConnectPtr conn ATTRIBUTE_
LIBVIRT_RELEASE_THREAD_STATE;
return ret;
}
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
static int
libvirt_virConnectDomainEventPMSuspendDiskCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
@@ -6393,9 +6396,11 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject * self,
case VIR_DOMAIN_EVENT_ID_PMSUSPEND:
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendCallback);
break;
+#if LIBVIR_CHECK_VERSION(0, 10, 0)
case VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE:
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventBalloonChangeCallback);
break;
+#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
case VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK:
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendDiskCallback);
break;