]> git.proxmox.com Git - qemu.git/blobdiff - monitor.h
Merge remote branch 'qemu-kvm/uq/stable-0.12' into stable-0.12
[qemu.git] / monitor.h
index 6cb1d4b35332c4a9105f1d08d0a43c3617bb2aff..6ed117a920a2eefe7cf8b648117b7323da957da2 100644 (file)
--- a/monitor.h
+++ b/monitor.h
@@ -13,6 +13,17 @@ extern Monitor *cur_mon;
 #define MONITOR_USE_READLINE  0x02
 #define MONITOR_USE_CONTROL   0x04
 
+/* QMP events */
+typedef enum MonitorEvent {
+    QEVENT_DEBUG,
+    QEVENT_SHUTDOWN,
+    QEVENT_RESET,
+    QEVENT_POWERDOWN,
+    QEVENT_STOP,
+    QEVENT_MAX,
+} MonitorEvent;
+
+void monitor_protocol_event(MonitorEvent event, QObject *data);
 void monitor_init(CharDriverState *chr, int flags);
 
 int monitor_suspend(Monitor *mon);