diff options
author | Christian Beier <dontmind@freeshell.org> | 2010-05-19 20:51:26 +0200 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2010-05-19 21:17:57 +0200 |
commit | 09f7c684a2b7eb43f283dcd938f0ccad891724e8 (patch) | |
tree | 26eda117776744e9edd059589b1ab2c0334784fe /rfb/rfb.h | |
parent | a29e42e515d5a99e29ab777159d04c213b7ceaa7 (diff) | |
download | libtdevnc-09f7c684a2b7eb43f283dcd938f0ccad891724e8.tar.gz libtdevnc-09f7c684a2b7eb43f283dcd938f0ccad891724e8.zip |
Implement a DisplayFinishedHook for libvncserver.
If set, this hook gets called just before
rfbSendFrameBufferUpdate() returns.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r-- | rfb/rfb.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -136,6 +136,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 void (*rfbDisplayFinishedHookPtr)(struct _rfbClientRec* cl, int result); /* support the capability to view the caps/num/scroll states of the X server */ typedef int (*rfbGetKeyboardLedStateHookPtr)(struct _rfbScreenInfo* screen); /* If x==1 and y==1 then set the whole display @@ -352,6 +353,9 @@ typedef struct _rfbScreenInfo /* command line authorization of file transfers */ rfbBool permitFileTransfer; + + /* displayFinishedHook is called just after a frame buffer update */ + rfbDisplayFinishedHookPtr displayFinishedHook; } rfbScreenInfo, *rfbScreenInfoPtr; |