1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Master include file |
Master include file |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2004 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
22 |
#include <stdio.h> |
#include <stdio.h> |
23 |
#include <string.h> |
#include <string.h> |
24 |
|
|
25 |
#define VERSION "1.2.0" |
#define VERSION "1.3.1" |
26 |
|
|
27 |
#ifdef WITH_DEBUG |
#ifdef WITH_DEBUG |
28 |
#define DEBUG(args) printf args; |
#define DEBUG(args) printf args; |
48 |
#define DEBUG_CLIPBOARD(args) |
#define DEBUG_CLIPBOARD(args) |
49 |
#endif |
#endif |
50 |
|
|
51 |
#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } |
#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } |
52 |
|
#ifndef MIN |
53 |
|
#define MIN(x,y) (((x) < (y)) ? (x) : (y)) |
54 |
|
#endif |
55 |
|
#ifndef MAX |
56 |
|
#define MAX(x,y) (((x) > (y)) ? (x) : (y)) |
57 |
|
#endif |
58 |
|
|
59 |
|
#include "parse.h" |
60 |
#include "constants.h" |
#include "constants.h" |
61 |
#include "types.h" |
#include "types.h" |
|
#include "parse.h" |
|
|
|
|
|
/* Declared here since it uses STREAM that's declared in parse.h */ |
|
|
typedef struct _rdp5_channel |
|
|
{ |
|
|
uint16 channelno; |
|
|
char name[8]; |
|
|
uint32 channelflags; |
|
|
void (*channelcallback) (STREAM, uint16); |
|
|
} |
|
|
rdp5_channel; |
|
62 |
|
|
63 |
#ifndef MAKE_PROTO |
#ifndef MAKE_PROTO |
64 |
#include "proto.h" |
#include "proto.h" |