vnc: implement shared flag handling.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Nov 2011 17:10:49 +0000 (18:10 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 08:58:33 +0000 (09:58 +0100)
commit8cf364898cfe4ae761f2253e91a040633d6f87be
tree056bc466b445d527bda61b0021c63bf3d152f4b8
parente26437c2d4a7f6cbbc0bbd51b08a2dcce84bb93b
vnc: implement shared flag handling.

VNC clients send a shared flag in the client init message.  Up to now
qemu completely ignores this.  This patch implements shared flag
handling.  It comes with three policies:  By default qemu behaves as one
would expect:  Asking for a exclusive access grants exclusive access to
the client connecting.  There is also a desktop sharing mode which
disallows exclusive connects (so one forgetting -shared wouldn't drop
everybody else) and a compatibility mode which mimics the traditional
(but non-conforming) qemu behavior.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
qemu-options.hx
ui/vnc.c
ui/vnc.h