]> 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 556507ce8948f924904ae0a4e1e2016cb1e8f24f..6ed117a920a2eefe7cf8b648117b7323da957da2 100644 (file)
--- a/monitor.h
+++ b/monitor.h
@@ -13,7 +13,17 @@ extern Monitor *cur_mon;
 #define MONITOR_USE_READLINE  0x02
 #define MONITOR_USE_CONTROL   0x04
 
-const char *monitor_cmdline_parse(const char *cmdline, int *flags);
+/* 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);