more comments; support playing vncrec'orded files

pull/1/head
dscho 20 years ago
parent 11271316d3
commit a6d341c01e

@ -54,6 +54,15 @@
#define DEFAULT_VIA_CMD \ #define DEFAULT_VIA_CMD \
(DEFAULT_SSH_CMD " -f -L %L:%H:%R %G sleep 20") (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 { typedef struct {
rfbBool shareDesktop; rfbBool shareDesktop;
@ -94,7 +103,7 @@ typedef struct _rfbClient {
const char* programName; const char* programName;
const char* serverHost; const char* serverHost;
int serverPort; int serverPort; /* if -1, then use file recorded by vncrec */
rfbBool listenSpecified; rfbBool listenSpecified;
int listenPort, flashPort; int listenPort, flashPort;
@ -123,11 +132,14 @@ typedef struct _rfbClient {
/* private data pointer */ /* private data pointer */
void* clientData; void* clientData;
rfbVNCRec* vncRec;
/* hooks */ /* hooks */
HandleCursorPosProc HandleCursorPos; HandleCursorPosProc HandleCursorPos;
SoftCursorLockAreaProc SoftCursorLockArea; SoftCursorLockAreaProc SoftCursorLockArea;
SoftCursorUnlockScreenProc SoftCursorUnlockScreen; SoftCursorUnlockScreenProc SoftCursorUnlockScreen;
GotFrameBufferUpdateProc GotFrameBufferUpdate; GotFrameBufferUpdateProc GotFrameBufferUpdate;
/* the pointer returned by GetPassword will be freed after use! */
GetPasswordProc GetPassword; GetPasswordProc GetPassword;
MallocFrameBufferProc MallocFrameBuffer; MallocFrameBufferProc MallocFrameBuffer;
BellProc Bell; BellProc Bell;

Loading…
Cancel
Save