mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
ui: rename vnc_init_state to vnc_start_protocol
Rename the vnc_init_state method to reflect what its actual purpose is, to discourage future devs from using it for more general state initialization. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1475163940-26094-10-git-send-email-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
90cd03a30e
commit
dbee9897d5
3 changed files with 4 additions and 4 deletions
4
ui/vnc.c
4
ui/vnc.c
|
@ -3065,7 +3065,7 @@ static void vnc_connect(VncDisplay *vd, QIOChannelSocket *sioc,
|
|||
graphic_hw_update(vd->dcl.con);
|
||||
|
||||
if (!vs->websocket) {
|
||||
vnc_init_state(vs);
|
||||
vnc_start_protocol(vs);
|
||||
}
|
||||
|
||||
if (vd->num_connecting > vd->connections_limit) {
|
||||
|
@ -3078,7 +3078,7 @@ static void vnc_connect(VncDisplay *vd, QIOChannelSocket *sioc,
|
|||
}
|
||||
}
|
||||
|
||||
void vnc_init_state(VncState *vs)
|
||||
void vnc_start_protocol(VncState *vs)
|
||||
{
|
||||
vnc_write(vs, "RFB 003.008\n", 12);
|
||||
vnc_flush(vs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue