mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
spice: connection events.
This patch adds support for connection events to spice. The events are quite simliar to the vnc events. Unlike vnc spice uses multiple tcp channels though. qemu will report every single tcp connection (aka spice channel). If you want track spice sessions only you can filter for the main channel (channel-type == 1). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
a19cbfb346
commit
6f8c63fbd7
4 changed files with 152 additions and 0 deletions
10
monitor.c
10
monitor.c
|
@ -59,6 +59,7 @@
|
|||
#ifdef CONFIG_SIMPLE_TRACE
|
||||
#include "trace.h"
|
||||
#endif
|
||||
#include "ui/qemu-spice.h"
|
||||
|
||||
//#define DEBUG
|
||||
//#define DEBUG_COMPLETION
|
||||
|
@ -459,6 +460,15 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|||
case QEVENT_WATCHDOG:
|
||||
event_name = "WATCHDOG";
|
||||
break;
|
||||
case QEVENT_SPICE_CONNECTED:
|
||||
event_name = "SPICE_CONNECTED";
|
||||
break;
|
||||
case QEVENT_SPICE_INITIALIZED:
|
||||
event_name = "SPICE_INITIALIZED";
|
||||
break;
|
||||
case QEVENT_SPICE_DISCONNECTED:
|
||||
event_name = "SPICE_DISCONNECTED";
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue