summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2004-06-18 09:11:21 +0000
committerdscho <dscho>2004-06-18 09:11:21 +0000
commita6d341c01e3356f08de27617c74ebd1b2a3501b5 (patch)
treeea7899e92e4ce06f0efa6e72eef81236fe4ad444
parent11271316d39bca7fa006de635d7ef4d17666a6f1 (diff)
downloadlibtdevnc-a6d341c0.tar.gz
libtdevnc-a6d341c0.zip
more comments; support playing vncrec'orded files
-rw-r--r--rfb/rfbclient.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index e6e43bf..6983c31 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -54,6 +54,15 @@
#define DEFAULT_VIA_CMD \
(DEFAULT_SSH_CMD " -f -L %L:%H:%R %G sleep 20")
+/* vncrec */
+
+typedef struct {
+ FILE* file;
+ struct timeval tv;
+ rfbBool readTimestamp;
+ rfbBool doNotSleep;
+} rfbVNCRec;
+
typedef struct {
rfbBool shareDesktop;
@@ -94,7 +103,7 @@ typedef struct _rfbClient {
const char* programName;
const char* serverHost;
- int serverPort;
+ int serverPort; /* if -1, then use file recorded by vncrec */
rfbBool listenSpecified;
int listenPort, flashPort;
@@ -123,11 +132,14 @@ typedef struct _rfbClient {
/* private data pointer */
void* clientData;
+ rfbVNCRec* vncRec;
+
/* hooks */
HandleCursorPosProc HandleCursorPos;
SoftCursorLockAreaProc SoftCursorLockArea;
SoftCursorUnlockScreenProc SoftCursorUnlockScreen;
GotFrameBufferUpdateProc GotFrameBufferUpdate;
+ /* the pointer returned by GetPassword will be freed after use! */
GetPasswordProc GetPassword;
MallocFrameBufferProc MallocFrameBuffer;
BellProc Bell;