summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2002-12-06 16:03:50 +0000
committerdscho <dscho>2002-12-06 16:03:50 +0000
commit4d87189420b6225da7f38aa71aee840d816bd570 (patch)
tree2de78669b8dea0e6f8d6ae4e4d17ff825b5c6a88 /rfb.h
parentd60fda117b1d72d12984a07a4444d36a69da639e (diff)
downloadlibtdevnc-4d871894.tar.gz
libtdevnc-4d871894.zip
compiler warnings, contrib directory, new x11vnc from Karl Runge
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/rfb.h b/rfb.h
index 856dd9b..37aac35 100644
--- a/rfb.h
+++ b/rfb.h
@@ -164,9 +164,17 @@ typedef int socklen_t;
the library and your application (at least the parts including rfb.h)
with the same support for pthreads. */
#ifdef HAVE_PTHREADS
-#define rfbInitServer rfbInitServerWithPthreads
+#ifdef HAVE_ZRLE
+#define rfbInitServer rfbInitServerWithPthreadsAndZRLE
+#else
+#define rfbInitServer rfbInitServerWithPthreadsButWithoutZRLE
+#endif
+#else
+#ifdef HAVE_ZRLE
+#define rfbInitServer rfbInitServerWithoutPthreadsButWithZRLE
#else
-#define rfbInitServer rfbInitServerWithoutPthreads
+#define rfbInitServer rfbInitServerWithoutPthreadsAndZRLE
+#endif
#endif
#define MAX_ENCODINGS 10
@@ -409,9 +417,6 @@ typedef struct _rfbClientRec {
Bool useCopyRect;
int preferredEncoding;
int correMaxWidth, correMaxHeight;
-#ifdef HAVE_ZRLE
- void* zrleData;
-#endif
/* The following member is only used during VNC authentication */
CARD8 authChallenge[CHALLENGESIZE];
@@ -538,6 +543,10 @@ typedef struct _rfbClientRec {
COND(updateCond);
#endif
+#ifdef HAVE_ZRLE
+ void* zrleData;
+#endif
+
} rfbClientRec, *rfbClientPtr;
/*
@@ -725,9 +734,10 @@ extern void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c,Bool freeOld)
extern void defaultPtrAddEvent(int buttonMask,int x,int y,rfbClientPtr cl);
/* zrle.c */
-
+#ifdef HAVE_ZRLE
extern Bool rfbSendRectEncodingZRLE(rfbClientPtr cl, int x, int y, int w,int h);
extern void FreeZrleData(rfbClientPtr cl);
+#endif
/* stats.c */