summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-03-18 19:07:48 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-03-26 13:53:01 +0000
commit3f1e01ca28674a9e2421cc8ede2feecfce72b27f (patch)
tree38eab8dd41325b5baebaf7f037c7ff698c19e972
parent296bc62854e2730d7a62365faaee8654f99a2b96 (diff)
downloadlibvirt-python-v6-3f1e01ca28674a9e2421cc8ede2feecfce72b27f.tar.gz
libvirt-python-v6-3f1e01ca28674a9e2421cc8ede2feecfce72b27f.tar.xz
libvirt-python-v6-3f1e01ca28674a9e2421cc8ede2feecfce72b27f.zip
Add support for an explicit watchdog event
This introduces a new event type VIR_DOMAIN_EVENT_ID_WATCHDOG This event includes the action that is about to be taken as a result of the watchdog triggering typedef enum { VIR_DOMAIN_EVENT_WATCHDOG_NONE = 0, VIR_DOMAIN_EVENT_WATCHDOG_PAUSE, VIR_DOMAIN_EVENT_WATCHDOG_RESET, VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF, VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN, VIR_DOMAIN_EVENT_WATCHDOG_DEBUG, } virDomainEventWatchdogAction; Thus there is a new callback definition for this event type typedef void (*virConnectDomainEventWatchdogCallback)(virConnectPtr conn, virDomainPtr dom, int action, void *opaque); * daemon/remote.c: Dispatch watchdog events to client * examples/domain-events/events-c/event-test.c: Watch for watchdog events * include/libvirt/libvirt.h.in: Define new watchdg event ID and callback signature * src/conf/domain_event.c, src/conf/domain_event.h, src/libvirt_private.syms: Extend API to handle watchdog events * src/qemu/qemu_driver.c: Connect to the QEMU monitor event for watchdogs and emit a libvirt watchdog event * src/remote/remote_driver.c: Receive and dispatch watchdog events to application * src/remote/remote_protocol.x: Wire protocol definition for watchdog events * src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h, src/qemu/qemu_monitor_json.c: Watch for WATCHDOG event from QEMU monitor
-rwxr-xr-xgenerator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator.py b/generator.py
index 1446924..9588446 100755
--- a/generator.py
+++ b/generator.py
@@ -171,6 +171,7 @@ skipped_types = {
'virConnectDomainEventCallback': "No function types in python",
'virConnectDomainEventGenericCallback': "No function types in python",
'virConnectDomainEventRTCChangeCallback': "No function types in python",
+ 'virConnectDomainEventWatchdogCallback': "No function types in python",
'virEventAddHandleFunc': "No function types in python",
}