Skip to content
  • Daniel P. Berrangé's avatar
    90cd03a3
    ui: move some initialization out of vnc_init_state · 90cd03a3
    Daniel P. Berrangé authored
    
    
    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: default avatarDaniel P. Berrange <berrange@redhat.com>
    Message-id: 1475163940-26094-9-git-send-email-berrange@redhat.com
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    90cd03a3
    ui: move some initialization out of vnc_init_state
    Daniel P. Berrangé authored
    
    
    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: default avatarDaniel P. Berrange <berrange@redhat.com>
    Message-id: 1475163940-26094-9-git-send-email-berrange@redhat.com
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Loading