diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-11-26 22:59:04 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:24 -0600 |
commit | b1a15e7eaafba8f26e2263b1a9b6e6d40e585e72 (patch) | |
tree | fea507ef8ad2dfe16ade7f1d6fa9a0fb0c76b225 /monitor.c | |
parent | 0d1ea871b09fc74b4a2085150980b43bd1973744 (diff) |
QMP: Introduce basic asynchronous events
Debug, shutdown, reset, powerdown and stop are all basic events,
as they are very simple they can be added in the same commit.
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.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -342,6 +342,21 @@ void monitor_protocol_event(MonitorEvent event, QObject *data) return; switch (event) { + case EVENT_DEBUG: + event_name = "DEBUG"; + break; + case EVENT_SHUTDOWN: + event_name = "SHUTDOWN"; + break; + case EVENT_RESET: + event_name = "RESET"; + break; + case EVENT_POWERDOWN: + event_name = "POWERDOWN"; + break; + case EVENT_STOP: + event_name = "STOP"; + break; default: abort(); break; |