|
|
b79911 |
From 997c203b6ae6cbf5dcb627d373a614bbe7d6e694 Mon Sep 17 00:00:00 2001
|
|
|
b79911 |
Message-Id: <997c203b6ae6cbf5dcb627d373a614bbe7d6e694@dist-git>
|
|
|
b79911 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
b79911 |
Date: Mon, 24 Nov 2014 17:59:42 +0100
|
|
|
b79911 |
Subject: [PATCH] RHEL-only: downgrade version check for agent lifecycle event
|
|
|
b79911 |
|
|
|
b79911 |
https://bugzilla.redhat.com/show_bug.cgi?id=1167336
|
|
|
b79911 |
|
|
|
b79911 |
Makes the agent lifecycle event work.
|
|
|
b79911 |
|
|
|
b79911 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
b79911 |
---
|
|
|
b79911 |
libvirt-override.c | 8 ++++----
|
|
|
b79911 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
b79911 |
|
|
|
b79911 |
diff --git a/libvirt-override.c b/libvirt-override.c
|
|
|
b79911 |
index c5d1478..3faddaa 100644
|
|
|
b79911 |
--- a/libvirt-override.c
|
|
|
b79911 |
+++ b/libvirt-override.c
|
|
|
b79911 |
@@ -6566,7 +6566,7 @@ libvirt_virConnectDomainEventTunableCallback(virConnectPtr conn ATTRIBUTE_UNUSED
|
|
|
b79911 |
}
|
|
|
b79911 |
#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
|
|
|
b79911 |
|
|
|
b79911 |
-#if LIBVIR_CHECK_VERSION(1, 2, 11)
|
|
|
b79911 |
+#if LIBVIR_CHECK_VERSION(1, 2, 8)
|
|
|
b79911 |
static int
|
|
|
b79911 |
libvirt_virConnectDomainEventAgentLifecycleCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|
|
b79911 |
virDomainPtr dom,
|
|
|
b79911 |
@@ -6618,7 +6618,7 @@ libvirt_virConnectDomainEventAgentLifecycleCallback(virConnectPtr conn ATTRIBUTE
|
|
|
b79911 |
return ret;
|
|
|
b79911 |
|
|
|
b79911 |
}
|
|
|
b79911 |
-#endif /* LIBVIR_CHECK_VERSION(1, 2, 11) */
|
|
|
b79911 |
+#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
|
|
|
b79911 |
|
|
|
b79911 |
|
|
|
b79911 |
static PyObject *
|
|
|
b79911 |
@@ -6713,11 +6713,11 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject *self,
|
|
|
b79911 |
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventTunableCallback);
|
|
|
b79911 |
break;
|
|
|
b79911 |
#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
|
|
|
b79911 |
-#if LIBVIR_CHECK_VERSION(1, 2, 11)
|
|
|
b79911 |
+#if LIBVIR_CHECK_VERSION(1, 2, 8)
|
|
|
b79911 |
case VIR_DOMAIN_EVENT_ID_AGENT_LIFECYCLE:
|
|
|
b79911 |
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventAgentLifecycleCallback);
|
|
|
b79911 |
break;
|
|
|
b79911 |
-#endif /* LIBVIR_CHECK_VERSION(1, 2, 11) */
|
|
|
b79911 |
+#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
|
|
|
b79911 |
case VIR_DOMAIN_EVENT_ID_LAST:
|
|
|
b79911 |
break;
|
|
|
b79911 |
}
|
|
|
b79911 |
--
|
|
|
b79911 |
2.1.3
|
|
|
b79911 |
|