vnc: remove vnc_display global
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 29 Jul 2014 10:14:08 +0000 (12:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Jan 2015 10:18:46 +0000 (11:18 +0100)
commitd616ccc5dd771024e04b9b15d7ca30bc7fe8fce3
tree6df7b22d5f8d55aaa4d497727bff614cb7de7164
parent699eae17b841e6784dc3864bf357e26bff1e9dfe
vnc: remove vnc_display global

Replace with a vnc_displays list, so we can have multiple vnc server
instances.  Add vnc_server_find function to lookup a display by id.
With no id supplied return the first vnc server, for backward
compatibility reasons.

It is not possible (yet) to actually create multiple vnc server
instances.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
ui/vnc.c
ui/vnc.h