From f48921becf48355e215d663cebbbbaa720b28a95 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 14 May 2017 20:49:57 +0200 Subject: websockets: restore webSocketCheckDisconnect() to keep API compatibility --- libvncserver/websockets.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libvncserver') 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 */ -- cgit v1.2.3