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:07 +0000
commit298233168c1f254cd60eec359629f2e7eb670e89 (patch)
tree0cc60c72ceb0d7cbba86cfac75f86bbe1a2ca7a2
parent33b2b09b7ff14312ce688c34ce0200c412a753a5 (diff)
downloadlibvirt-python-v9-298233168c1f254cd60eec359629f2e7eb670e89.zip
libvirt-python-v9-298233168c1f254cd60eec359629f2e7eb670e89.tar.gz
libvirt-python-v9-298233168c1f254cd60eec359629f2e7eb670e89.tar.xz
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED appeared in 1.1.1
-rw-r--r--libvirt-override.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 5f392c0..761b6a6 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6307,6 +6307,7 @@ libvirt_virConnectDomainEventPMSuspendDiskCallback(virConnectPtr conn ATTRIBUTE_
}
#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
+#if LIBVIR_CHECK_VERSION(1, 1, 1)
static int
libvirt_virConnectDomainEventDeviceRemovedCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
virDomainPtr dom,
@@ -6351,6 +6352,7 @@ libvirt_virConnectDomainEventDeviceRemovedCallback(virConnectPtr conn ATTRIBUTE_
LIBVIRT_RELEASE_THREAD_STATE;
return ret;
}
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
static PyObject *
libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject * self,
@@ -6431,10 +6433,11 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject * self,
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventPMSuspendDiskCallback);
break;
#endif /* LIBVIR_CHECK_VERSION(1, 0, 0) */
+#if LIBVIR_CHECK_VERSION(1, 1, 1)
case VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED:
cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback);
break;
-
+#endif /* LIBVIR_CHECK_VERSION(1, 1, 1) */
case VIR_DOMAIN_EVENT_ID_LAST:
break;
}