summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-05-14 20:49:57 +0200
committerChristian Beier <dontmind@freeshell.org>2017-05-14 20:49:57 +0200
commitf48921becf48355e215d663cebbbbaa720b28a95 (patch)
tree5eced657406f0789f6ef84b175627e067ab65017
parentef8d2852f546135c94282a4d634fe4ac9e7558a4 (diff)
downloadlibtdevnc-f48921becf48355e215d663cebbbbaa720b28a95.tar.gz
libtdevnc-f48921becf48355e215d663cebbbbaa720b28a95.zip
websockets: restore webSocketCheckDisconnect() to keep API compatibility
-rw-r--r--libvncserver/websockets.c11
-rw-r--r--rfb/rfb.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index 921015d..d10d992 100644
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -440,6 +440,17 @@ webSocketsDecode(rfbClientPtr cl, char *dst, int len)
return webSocketsDecodeHybi(wsctx, dst, len);
}
+/**
+ * This is a stub function that was once used for Hixie-encoding.
+ * We keep it for API compatibility.
+ */
+rfbBool
+webSocketCheckDisconnect(rfbClientPtr cl)
+{
+ return FALSE;
+}
+
+
/* returns TRUE if there is data waiting to be read in our internal buffer
* or if is there any pending data in the buffer of the SSL implementation
*/
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 9aace0d..f982b40 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -763,6 +763,7 @@ extern rfbBool rfbSetNonBlocking(int sock);
/* websockets.c */
extern rfbBool webSocketsCheck(rfbClientPtr cl);
+extern rfbBool webSocketCheckDisconnect(rfbClientPtr cl);
extern int webSocketsEncode(rfbClientPtr cl, const char *src, int len, char **dst);
extern int webSocketsDecode(rfbClientPtr cl, char *dst, int len);
extern rfbBool webSocketsHasDataInBuffer(rfbClientPtr cl);