From bf7aa45e7b378691ea0e8616a2aeae2aaabb7bc3 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 19 Feb 2015 10:46:49 +0100 Subject: vnc: drop display+ws_display from VncDisplay Nobody cares about those strings, they are only used to check whenever the vnc server / websocket support is enabled or not. Add bools for this and drop the strings. Signed-off-by: Gerd Hoffmann Reviewed-by: Gonglei --- ui/vnc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/vnc.h') diff --git a/ui/vnc.h b/ui/vnc.h index 5e2b1a561e..66a02986c7 100644 --- a/ui/vnc.h +++ b/ui/vnc.h @@ -158,8 +158,7 @@ struct VncDisplay int lsock; #ifdef CONFIG_VNC_WS int lwebsock; - bool websocket; - char *ws_display; + bool ws_enabled; #endif DisplaySurface *ds; DisplayChangeListener dcl; @@ -176,7 +175,8 @@ struct VncDisplay const char *id; QTAILQ_ENTRY(VncDisplay) next; - char *display; + bool enabled; + bool is_unix; char *password; time_t expires; int auth; -- cgit 1.4.1