diff options
author | Christian Beier <dontmind@freeshell.org> | 2010-11-02 22:23:12 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2010-11-02 22:23:12 +0100 |
commit | e5523350a8fb5d6ccae4b4d9bc92897f3e5db18c (patch) | |
tree | a784f30fb06c79ec942613f7a3833a23f97e808c /rfb/rfbclient.h | |
parent | 5da7c7a71ac1db69902c3a2a80f8771713dde70f (diff) | |
download | libvncserver-e5523350a8fb5d6ccae4b4d9bc92897f3e5db18c.zip libvncserver-e5523350a8fb5d6ccae4b4d9bc92897f3e5db18c.tar.gz |
libvnc[server|client]: implement xvp VNC extension.
This implements the xvp VNC extension, which is described in the
community version of the RFB protocol:
http://tigervnc.sourceforge.net/cgi-bin/rfbproto
It is also mentioned in the official RFB protocol.
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r-- | rfb/rfbclient.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index 34c8737..1edd32e 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -136,6 +136,7 @@ typedef union _rfbCredential struct _rfbClient; typedef void (*HandleTextChatProc)(struct _rfbClient* client, int value, char *text); +typedef void (*HandleXvpMsgProc)(struct _rfbClient* client, uint8_t version, uint8_t opcode); typedef void (*HandleKeyboardLedStateProc)(struct _rfbClient* client, int value, int pad); typedef rfbBool (*HandleCursorPosProc)(struct _rfbClient* client, int x, int y); typedef void (*SoftCursorLockAreaProc)(struct _rfbClient* client, int x, int y, int w, int h); @@ -316,6 +317,9 @@ typedef struct _rfbClient { /* the QoS IP DSCP for this client */ int QoS_DSCP; + + /* hook to handle xvp server messages */ + HandleXvpMsgProc HandleXvpMsg; } rfbClient; /* cursor.c */ @@ -352,6 +356,7 @@ extern rfbBool TextChatOpen(rfbClient* client); extern rfbBool TextChatClose(rfbClient* client); extern rfbBool TextChatFinish(rfbClient* client); extern rfbBool PermitServerInput(rfbClient* client, int enabled); +extern rfbBool SendXvpMsg(rfbClient* client, uint8_t version, uint8_t code); extern void PrintPixelFormat(rfbPixelFormat *format); |