mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
QMP: Introduce VNC_INITIALIZED event
It's emitted when a VNC client session is activated by QEMU, client's information such as port, IP and auth ID (if the session is authenticated) are provided. Event example: { "event": "VNC_INITIALIZED", "timestamp": {"seconds": 1263475302, "microseconds": 150772}, "data": { "server": { "auth": "sasl", "family": "ipv4", "service": "5901", "host": "0.0.0.0"}, "client": { "family": "ipv4", "service": "46089", "host": "127.0.0.1", "sasl_username": "lcapitulino" } } } Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0d72f3d31b
commit
0d2ed46af4
4 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue