#include "colormapst.h"
#include "gcstruct.h"
#include "osdep.h"
-#include <rfb/rfbproto.h>
-#include <rfb/vncauth.h>
#define MAX_ENCODINGS 20
} rfbScreenInfo, *rfbScreenInfoPtr;
-/*
- * rfbTranslateFnType is the type of translation functions.
- */
-
-struct rfbClientRec;
-typedef void (*rfbTranslateFnType)(char *table, rfbPixelFormat *in,
- rfbPixelFormat *out,
- char *iptr, char *optr,
- int bytesBetweenInputLines,
- int width, int height);
-
/*
* Per-client structure.
int correMaxWidth, correMaxHeight;
void* zrleData;
- /* The following member is only used during VNC authentication */
-
- CARD8 authChallenge[CHALLENGESIZE];
-
/* The following members represent the update needed to get the client's
framebuffer from its present state to the current state of our
framebuffer.
Bool deferredUpdateScheduled;
OsTimerPtr deferredUpdateTimer;
- /* translateFn points to the translation function which is used to copy
- and translate a rectangle from the framebuffer to an output buffer. */
-
- rfbTranslateFnType translateFn;
-
char *translateLookupTable;
- rfbPixelFormat format;
-
/* statistics */
int rfbBytesSent[MAX_ENCODINGS];
/* translate.c */
extern Bool rfbEconomicTranslate;
-extern rfbPixelFormat rfbServerFormat;
-extern void rfbTranslateNone(char *table, rfbPixelFormat *in,
- rfbPixelFormat *out,
- char *iptr, char *optr,
- int bytesBetweenInputLines,
- int width, int height);
extern Bool rfbSetTranslateFunction(rfbClientPtr cl);
extern void rfbSetClientColourMaps(int firstColour, int nColours);
extern Bool rfbSetClientColourMap(rfbClientPtr cl, int firstColour,