diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-15 18:40:53 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-15 18:40:53 -0600 |
commit | cf5cfe0471eb3693401f390bc467413d14dce368 (patch) | |
tree | 1c4aedc91cd3adb5eae324c56092f82c4d6bee4f /ui/vnc.h | |
parent | 006c891fc9d4f044ad3f41b6e019442523b45a54 (diff) | |
parent | 7bc9318bfb68b2d773449a55d4fa800d0fdb0918 (diff) | |
download | qemu-cf5cfe0471eb3693401f390bc467413d14dce368.tar.gz |
Merge remote-tracking branch 'kraxel/vnc.2' into staging
* kraxel/vnc.2:
vnc: lift modifier keys on client disconnect.
vnc: implement shared flag handling.
vnc: fix ctrl key in vnc terminal emulation
Fix vnc memory corruption with width = 1400
Diffstat (limited to 'ui/vnc.h')
-rw-r--r-- | ui/vnc.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -122,9 +122,24 @@ struct VncSurface DisplaySurface *ds; }; +typedef enum VncShareMode { + VNC_SHARE_MODE_CONNECTING = 1, + VNC_SHARE_MODE_SHARED, + VNC_SHARE_MODE_EXCLUSIVE, + VNC_SHARE_MODE_DISCONNECTED, +} VncShareMode; + +typedef enum VncSharePolicy { + VNC_SHARE_POLICY_IGNORE = 1, + VNC_SHARE_POLICY_ALLOW_EXCLUSIVE, + VNC_SHARE_POLICY_FORCE_SHARED, +} VncSharePolicy; + struct VncDisplay { QTAILQ_HEAD(, VncState) clients; + int num_exclusive; + VncSharePolicy share_policy; QEMUTimer *timer; int timer_interval; int lsock; @@ -250,6 +265,7 @@ struct VncState int last_y; int client_width; int client_height; + VncShareMode share_mode; uint32_t vnc_encoding; |