diff options
-rw-r--r-- | QMP/qmp-events.txt | 6 | ||||
-rw-r--r-- | monitor.c | 3 | ||||
-rw-r--r-- | monitor.h | 1 | ||||
-rw-r--r-- | vnc.c | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 1e87eb16c6..dc48cccea1 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -37,3 +37,9 @@ except that authentication ID is not provided. Description: Issued when the conection is closed. Data: 'server' and 'client' keys with the same keys as 'query-vnc'. + +6 VNC_INITIALIZED +----------------- + +Description: Issued when the VNC session is made active. +Data: 'server' and 'client' keys with the same keys as 'query-vnc'. @@ -360,6 +360,9 @@ void monitor_protocol_event(MonitorEvent event, QObject *data) case QEVENT_VNC_CONNECTED: event_name = "VNC_CONNECTED"; break; + case QEVENT_VNC_INITIALIZED: + event_name = "VNC_INITIALIZED"; + break; case QEVENT_VNC_DISCONNECTED: event_name = "VNC_DISCONNECTED"; break; @@ -21,6 +21,7 @@ typedef enum MonitorEvent { QEVENT_POWERDOWN, QEVENT_STOP, QEVENT_VNC_CONNECTED, + QEVENT_VNC_INITIALIZED, QEVENT_VNC_DISCONNECTED, QEVENT_MAX, } MonitorEvent; @@ -2112,6 +2112,7 @@ static int protocol_client_init(VncState *vs, uint8_t *data, size_t len) vnc_flush(vs); vnc_client_cache_auth(vs); + vnc_qmp_event(vs, QEVENT_VNC_INITIALIZED); vnc_read_when(vs, protocol_client_msg, 1); |