diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-07-29 12:14:08 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-01-22 11:18:46 +0100 |
commit | d616ccc5dd771024e04b9b15d7ca30bc7fe8fce3 (patch) | |
tree | 6df7b22d5f8d55aaa4d497727bff614cb7de7164 /ui/vnc.h | |
parent | 699eae17b841e6784dc3864bf357e26bff1e9dfe (diff) |
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>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r-- | ui/vnc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -171,6 +171,8 @@ struct VncDisplay struct VncSurface guest; /* guest visible surface (aka ds->surface) */ pixman_image_t *server; /* vnc server surface */ + const char *id; + QTAILQ_ENTRY(VncDisplay) next; char *display; char *password; time_t expires; |