]> Git Repo - qemu.git/blobdiff - monitor.h
QMP: Introduce VNC_DISCONNECTED event
[qemu.git] / monitor.h
index 13e8cc7647eeda8edfd64ae79049726040108038..42386de222ce6b9554e260d3b9c601cdd3fc82fe 100644 (file)
--- a/monitor.h
+++ b/monitor.h
@@ -3,6 +3,7 @@
 
 #include "qemu-common.h"
 #include "qemu-char.h"
+#include "qdict.h"
 #include "block.h"
 
 extern Monitor *cur_mon;
@@ -10,7 +11,21 @@ extern Monitor *cur_mon;
 /* flags for monitor_init */
 #define MONITOR_IS_DEFAULT    0x01
 #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_VNC_CONNECTED,
+    QEVENT_VNC_DISCONNECTED,
+    QEVENT_MAX,
+} MonitorEvent;
+
+void monitor_protocol_event(MonitorEvent event, QObject *data);
 void monitor_init(CharDriverState *chr, int flags);
 
 int monitor_suspend(Monitor *mon);
@@ -20,6 +35,8 @@ void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
                                  BlockDriverCompletionFunc *completion_cb,
                                  void *opaque);
 
+int monitor_get_fd(Monitor *mon, const char *fdname);
+
 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
 void monitor_printf(Monitor *mon, const char *fmt, ...)
     __attribute__ ((__format__ (__printf__, 2, 3)));
This page took 0.024 seconds and 4 git commands to generate.