diff options
author | dscho <dscho> | 2005-01-03 22:34:48 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-01-03 22:34:48 +0000 |
commit | e78a41c69c0b8d32c0742c11610f1918c98f35e4 (patch) | |
tree | ca315d0c4fc0b13bba70bad8922a4d71e34e3ad3 /libvncserver/main.c | |
parent | 4b89306d17a56210cf7d8c4da93ff585b166b3fb (diff) | |
download | libtdevnc-e78a41c69c0b8d32c0742c11610f1918c98f35e4.tar.gz libtdevnc-e78a41c69c0b8d32c0742c11610f1918c98f35e4.zip |
add hook to allow for custom client messages
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r-- | libvncserver/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index 96aeda7..0c87d8e 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -498,6 +498,11 @@ enum rfbNewClientAction rfbDefaultNewClientHook(rfbClientPtr cl) return RFB_CLIENT_ACCEPT; } +rfbBool rfbDefaultProcessCustomClientMessage(rfbClientPtr cl,uint8_t type) +{ + return FALSE; +} + /* * Update server's pixel format in screenInfo structure. This * function is called from rfbGetScreen() and rfbNewFramebuffer(). @@ -641,6 +646,7 @@ rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv, screen->setTranslateFunction = rfbSetTranslateFunction; screen->newClientHook = rfbDefaultNewClientHook; screen->displayHook = 0; + screen->processCustomClientMessage = rfbDefaultProcessCustomClientMessage; /* initialize client list and iterator mutex */ rfbClientListInit(screen); |