summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authordscho <dscho>2005-01-03 22:34:48 +0000
committerdscho <dscho>2005-01-03 22:34:48 +0000
commite78a41c69c0b8d32c0742c11610f1918c98f35e4 (patch)
treeca315d0c4fc0b13bba70bad8922a4d71e34e3ad3 /rfb
parent4b89306d17a56210cf7d8c4da93ff585b166b3fb (diff)
downloadlibtdevnc-e78a41c69c0b8d32c0742c11610f1918c98f35e4.tar.gz
libtdevnc-e78a41c69c0b8d32c0742c11610f1918c98f35e4.zip
add hook to allow for custom client messages
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index d97cd19..dd61660 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -125,6 +125,7 @@ typedef rfbBool (*rfbSetTranslateFunctionProcPtr)(struct _rfbClientRec* cl);
typedef rfbBool (*rfbPasswordCheckProcPtr)(struct _rfbClientRec* cl,const char* encryptedPassWord,int len);
typedef enum rfbNewClientAction (*rfbNewClientHookPtr)(struct _rfbClientRec* cl);
typedef void (*rfbDisplayHookPtr)(struct _rfbClientRec* cl);
+typedef rfbBool (*rfbProcessCustomClientMessageProcPtr)(struct _rfbClientRec* cl,uint8_t type);
typedef struct {
uint32_t count;
@@ -291,6 +292,10 @@ typedef struct _rfbScreenInfo
* an update should be sent. This should make working on a slow
* link more interactive. */
int progressiveSliceHeight;
+
+ /* if LibVNCServer doesn't know the normal message, it calls this
+ * hook. If the hook handles the message, it returns TRUE. */
+ rfbProcessCustomClientMessageProcPtr processCustomClientMessage;
} rfbScreenInfo, *rfbScreenInfoPtr;