2016-05-29 04:58:04 +00:00
|
|
|
typedef union Origin {
|
|
|
|
unsigned long l;
|
|
|
|
Point pt;
|
|
|
|
} Origin;
|
|
|
|
|
2015-09-23 23:46:47 +00:00
|
|
|
extern unsigned int fbHeight;
|
|
|
|
extern unsigned int fbWidth;
|
|
|
|
|
2015-09-24 00:40:17 +00:00
|
|
|
extern BOOLEAN displayInProgress;
|
|
|
|
|
|
|
|
extern unsigned int rectX;
|
|
|
|
extern unsigned int rectY;
|
|
|
|
extern unsigned int rectWidth;
|
|
|
|
extern unsigned int rectHeight;
|
|
|
|
|
2015-09-24 01:26:03 +00:00
|
|
|
#define encodingRaw 0
|
|
|
|
#define encodingCopyRect 1
|
|
|
|
#define encodingRRE 2
|
|
|
|
#define encodingCoRRE 4
|
|
|
|
#define encodingHextile 5
|
2016-09-18 04:40:10 +00:00
|
|
|
#define encodingZlib 6
|
|
|
|
#define encodingTight 7
|
|
|
|
#define encodingZlibhex 8
|
|
|
|
#define encodingTRLE 15
|
2015-09-24 01:26:03 +00:00
|
|
|
#define encodingZRLE 16
|
|
|
|
#define encodingCursor 0xffffff11
|
|
|
|
#define encodingDesktopSize 0xffffff21
|
2015-09-24 00:40:17 +00:00
|
|
|
|
2016-09-18 04:40:10 +00:00
|
|
|
#define nonEncodingClipboard 3 /* should be different from any encoding */
|
|
|
|
|
2016-05-14 02:44:12 +00:00
|
|
|
#define WIN_WIDTH_320 302
|
|
|
|
#define WIN_WIDTH_640 613
|
|
|
|
#define WIN_HEIGHT 174
|
|
|
|
|
2015-09-23 23:46:47 +00:00
|
|
|
extern GrafPortPtr vncWindow;
|
|
|
|
|
2015-09-24 00:40:17 +00:00
|
|
|
/* VNC session window dimensions */
|
|
|
|
extern unsigned int winHeight;
|
|
|
|
extern unsigned int winWidth;
|
|
|
|
|
|
|
|
/* On the next 2 structs, only certain values are permanently zero.
|
|
|
|
* Others are changed later.
|
|
|
|
*/
|
|
|
|
extern struct LocInfo srcLocInfo;
|
|
|
|
|
|
|
|
/* Used by multiple encodings */
|
|
|
|
extern Rect srcRect;
|
|
|
|
extern unsigned char *pixTransTbl;
|
|
|
|
|
2015-09-24 01:26:03 +00:00
|
|
|
extern BOOLEAN checkBounds; /* Adjust drawing to stay in bounds */
|
2015-09-24 00:40:17 +00:00
|
|
|
|
2016-09-05 21:48:38 +00:00
|
|
|
extern unsigned long skipBytes;
|
|
|
|
|
2015-09-23 23:46:47 +00:00
|
|
|
void InitVNCWindow (void);
|
|
|
|
|
|
|
|
void SendFBUpdateRequest (BOOLEAN /*incremental*/, unsigned int /*x*/,
|
2015-09-24 01:26:03 +00:00
|
|
|
unsigned int /*y*/, unsigned int /*width*/, unsigned int /*height*/);
|
2015-09-23 23:46:47 +00:00
|
|
|
|
|
|
|
void ConnectedEventLoop (void);
|
|
|
|
|
2016-05-14 00:35:41 +00:00
|
|
|
void NextRect (void);
|