Blob Blame Raw
From 354f605b3a8925b9525c1b2a2a8e5702d7a9cb94 Mon Sep 17 00:00:00 2001
Message-Id: <354f605b3a8925b9525c1b2a2a8e5702d7a9cb94@dist-git>
From: Pavel Hrdina <phrdina@redhat.com>
Date: Wed, 1 Oct 2014 11:58:07 +0200
Subject: [PATCH] RHEL: change version checking from 1.2.9 to 1.2.8 for tunable
 event

We will keep the original commit to make the future rebase easy that
just this patch will be dropped.

RHEL only
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1147639

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 libvirt-override.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index d94c292..f528100 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6506,7 +6506,7 @@ libvirt_virConnectDomainEventDeviceRemovedCallback(virConnectPtr conn ATTRIBUTE_
 }
 #endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
 
-#if LIBVIR_CHECK_VERSION(1, 2, 9)
+#if LIBVIR_CHECK_VERSION(1, 2, 8)
 static int
 libvirt_virConnectDomainEventTunableCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
                                              virDomainPtr dom,
@@ -6564,7 +6564,7 @@ libvirt_virConnectDomainEventTunableCallback(virConnectPtr conn ATTRIBUTE_UNUSED
     return ret;
 
 }
-#endif /* LIBVIR_CHECK_VERSION(1, 2, 9) */
+#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
 
 static PyObject *
 libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject *self,
@@ -6653,11 +6653,11 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject *self,
         cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback);
         break;
 #endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
-#if LIBVIR_CHECK_VERSION(1, 2, 9)
+#if LIBVIR_CHECK_VERSION(1, 2, 8)
     case VIR_DOMAIN_EVENT_ID_TUNABLE:
         cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventTunableCallback);
         break;
-#endif /* LIBVIR_CHECK_VERSION(1, 2, 9) */
+#endif /* LIBVIR_CHECK_VERSION(1, 2, 8) */
     case VIR_DOMAIN_EVENT_ID_LAST:
         break;
     }
-- 
2.1.3