aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-25 12:13:04 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2010-03-09 08:47:27 -0600
commit9eedeb3b88173d84d438557cada237346a764e0b (patch)
treef5f276c6cc5e8196da7090256da72661e3fb85e0 /monitor.c
parent2d753894c7553d6a05e8fdbed5f4704398919a35 (diff)
QMP: Introduce WATCHDOG event
It's emitted whenever the watchdog device's timer expires. The action taken is provided in the 'data' member. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index f062b92499..672ae474bb 100644
--- a/monitor.c
+++ b/monitor.c
@@ -426,6 +426,9 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
case QEVENT_RTC_CHANGE:
event_name = "RTC_CHANGE";
break;
+ case QEVENT_WATCHDOG:
+ event_name = "WATCHDOG";
+ break;
default:
abort();
break;