From: "Daniel P. Berrange" <berrange(a)redhat.com>
---
libvirt-override.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvirt-override.c b/libvirt-override.c
index 1894c97..1c9d506 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6251,6 +6251,7 @@ libvirt_virConnectDomainEventBalloonChangeCallback(virConnectPtr
conn ATTRIBUTE_
}
#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
+#if LIBVIR_CHECK_VERSION(1, 0, 0)
static int
libvirt_virConnectDomainEventPMSuspendDiskCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
virDomainPtr dom,
@@ -6297,6 +6298,7 @@ libvirt_virConnectDomainEventPMSuspendDiskCallback(virConnectPtr
conn ATTRIBUTE_
LIBVIRT_RELEASE_THREAD_STATE;
return ret;
}
+#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
static int
libvirt_virConnectDomainEventDeviceRemovedCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
@@ -6417,9 +6419,11 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject
* self,
cb =
VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventBalloonChangeCallback);
break;
#endif /* LIBVIR_CHECK_VERSION(0, 10, 0) */
+#if LIBVIR_CHECK_VERSION(1, 0, 0)
case VIR_DOMAIN_EVENT_ID_PMSUSPEND_DISK:
cb =
VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendDiskCallback);
break;
+#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
case VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED:
cb =
VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback);
break;
--
1.8.3.1