summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-10-16 20:57:26 +0000
committerdscho <dscho>2001-10-16 20:57:26 +0000
commit2c4869fc9a8f2c72e6f8631b25894246a0a90701 (patch)
treee7396ef0a8a40c102bde4b490897204e368f233a /rfb.h
parent47f18e575da762733c19e9f499472ba42f478df8 (diff)
downloadlibtdevnc-2c4869fc9a8f2c72e6f8631b25894246a0a90701.tar.gz
libtdevnc-2c4869fc9a8f2c72e6f8631b25894246a0a90701.zip
deferUpdate
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/rfb.h b/rfb.h
index ad78490..eac85e2 100644
--- a/rfb.h
+++ b/rfb.h
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/time.h>
#include <zlib.h>
#include "keysym.h"
@@ -269,6 +270,8 @@ typedef struct
PasswordCheckProcPtr passwordCheck;
char* rfbAuthPasswdData;
+ /* this is the amount of milliseconds to wait at least before sending
+ * an update. */
int rfbDeferUpdateTime;
char* rfbScreen;
Bool rfbAlwaysShared;
@@ -406,13 +409,14 @@ typedef struct rfbClientRec {
sraRegionPtr requestedRegion;
- /* TODO: */
- /* The following members represent the state of the "deferred update" timer
+ /* The following member represents the state of the "deferred update" timer
- when the framebuffer is modified and the client is ready, in most
cases it is more efficient to defer sending the update by a few
milliseconds so that several changes to the framebuffer can be combined
into a single update. */
+ struct timeval startDeferring;
+
/* translateFn points to the translation function which is used to copy
and translate a rectangle from the framebuffer to an output buffer. */