aboutsummaryrefslogtreecommitdiff
path: root/ui/vnc.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-09-29 16:45:39 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-10-13 09:22:30 +0200
commit90cd03a30ee96779ee9ae36a84b387452e256358 (patch)
tree086ddbc6183c4e0ec975a1f72ca5bf764cf6f217 /ui/vnc.h
parent2df2041036ee63ff9116631c6214e3ffb5f4bf45 (diff)
ui: move some initialization out of vnc_init_state
Most of the fields in VncState are initialized in the vnc_connect() method, but some are done in vnc_init_state() instead. The purpose of having vnc_init_state() is to delay starting of the VNC wire protocol until after the websockets handshake has completed. As such the vnc_init_state() method only needs to be used for initialization that is dependant on the wire protocol running. This also lets us get rid of the initialized boolean flag from the VncState struct. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1475163940-26094-9-git-send-email-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r--ui/vnc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/vnc.h b/ui/vnc.h
index d191d88356..e48e155ce4 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -307,7 +307,6 @@ struct VncState
QEMUPutLEDEntry *led;
bool abort;
- bool initialized;
QemuMutex output_mutex;
QEMUBH *bh;
Buffer jobs_buffer;