Lines Matching refs:vd
100 static const char *vnc_auth_name(VncDisplay *vd) { in vnc_auth_name() argument
101 switch (vd->auth) { in vnc_auth_name()
120 switch (vd->subauth) { in vnc_auth_name()
291 VncDisplay *vd = ds->opaque; in vnc_dpy_update() local
292 VncState *vs = vd->clients; in vnc_dpy_update()
382 VncDisplay *vd = ds->opaque; in vnc_dpy_resize() local
383 VncState *vs = vd->clients; in vnc_dpy_resize()
668 VncDisplay *vd = ds->opaque; in vnc_dpy_copy() local
671 for (vs = vd->clients; vs != NULL; vs = vn) { in vnc_dpy_copy()
680 for (vs = vd->clients; vs != NULL; vs = vs->next) { in vnc_dpy_copy()
905 for (p = vs->vd->clients; p != NULL; p = p->next) { in vnc_disconnect_finish()
910 vs->vd->clients = p->next; in vnc_disconnect_finish()
915 if (!vs->vd->clients) in vnc_disconnect_finish()
1302 kbd_put_keycode(keysym2scancode(vs->vd->kbd_layout, keysym) & 0x7f); in press_key()
1303 kbd_put_keycode(keysym2scancode(vs->vd->kbd_layout, keysym) | 0x80); in press_key()
1336 if (keycode_is_keypad(vs->vd->kbd_layout, keycode)) { in do_key_event()
1341 if (keysym_is_numlock(vs->vd->kbd_layout, sym & 0xFFFF)) { in do_key_event()
1466 keycode = keysym2scancode(vs->vd->kbd_layout, sym & 0xFFFF); in key_event()
1886 if (!vs->vd->password || !vs->vd->password[0]) { in protocol_client_auth_vnc()
1902 pwlen = strlen(vs->vd->password); in protocol_client_auth_vnc()
1904 key[i] = i<pwlen ? vs->vd->password[i] : 0; in protocol_client_auth_vnc()
1945 if (data[0] != vs->vd->auth) { /* Reject auth */ in protocol_client_auth()
1956 switch (vs->vd->auth) { in protocol_client_auth()
1986 VNC_DEBUG("Reject auth %d server code bug\n", vs->vd->auth); in protocol_client_auth()
2031 if (vs->vd->auth == VNC_AUTH_NONE) { in protocol_version()
2033 vnc_write_u32(vs, vs->vd->auth); in protocol_version()
2036 } else if (vs->vd->auth == VNC_AUTH_VNC) { in protocol_version()
2038 vnc_write_u32(vs, vs->vd->auth); in protocol_version()
2042 VNC_DEBUG("Unsupported auth %d for protocol 3.3\n", vs->vd->auth); in protocol_version()
2048 VNC_DEBUG("Telling client we support auth %d\n", vs->vd->auth); in protocol_version()
2050 vnc_write_u8(vs, vs->vd->auth); in protocol_version()
2058 static void vnc_connect(VncDisplay *vd, int csock) in vnc_connect() argument
2068 vs->vd = vd; in vnc_connect()
2069 vs->ds = vd->ds; in vnc_connect()
2085 vs->next = vd->clients; in vnc_connect()
2086 vd->clients = vs; in vnc_connect()