summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2016-04-24 17:00:08 +0200
committerChristian Beier <dontmind@freeshell.org>2016-04-24 17:00:08 +0200
commitfc3dfdd9c59a6a36f7add3255aaad50d56228c59 (patch)
tree1f67155bd18492eb8dbbf0b059a66b0c62fdee68 /rfb
parent2893c2b057dfddd25efdbda21ff9d2522763489a (diff)
parent1da7872784a78446284b4e8ef71691458296026c (diff)
downloadlibtdevnc-fc3dfdd9c59a6a36f7add3255aaad50d56228c59.tar.gz
libtdevnc-fc3dfdd9c59a6a36f7add3255aaad50d56228c59.zip
Merge pull request #118 from gbdj/threadsafe-100-squash
libvncclient/tls_gnutls.c: Add hooks to WriteToTLS() for optional protection by mutex. (Squashed)
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfbclient.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index 157461e..c18eaf9 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -182,6 +182,8 @@ typedef void (*BellProc)(struct _rfbClient* client);
*/
typedef void (*GotCursorShapeProc)(struct _rfbClient* client, int xhot, int yhot, int width, int height, int bytesPerPixel);
typedef void (*GotCopyRectProc)(struct _rfbClient* client, int src_x, int src_y, int w, int h, int dest_x, int dest_y);
+typedef rfbBool (*LockWriteToTLSProc)(struct _rfbClient* client);
+typedef rfbBool (*UnlockWriteToTLSProc)(struct _rfbClient* client);
typedef struct _rfbClient {
uint8_t* frameBuffer;
@@ -361,6 +363,10 @@ typedef struct _rfbClient {
/* Output Window ID. When set, client application enables libvncclient to perform direct rendering in its window */
unsigned long outputWindow;
+ /** Hooks for optional protection WriteToTLS() by mutex */
+ LockWriteToTLSProc LockWriteToTLS;
+ UnlockWriteToTLSProc UnlockWriteToTLS;
+
} rfbClient;
/* cursor.c */