--- sourceforge.net/trunk/rdesktop/rdesktop.h 2000/09/28 15:54:11 17 +++ sourceforge.net/trunk/rdesktop/rdesktop.h 2003/06/06 10:43:01 406 @@ -1,7 +1,7 @@ /* rdesktop: A Remote Desktop Protocol client. Master include file - Copyright (C) Matthew Chapman 1999-2000 + Copyright (C) Matthew Chapman 1999-2002 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,26 +18,52 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include -#define VERSION "0.9.0-alpha2" +#define VERSION "1.2.0" -#define STATUS(args...) fprintf(stderr, args); -#define ERROR(args...) fprintf(stderr, "ERROR: "args); -#define WARN(args...) fprintf(stderr, "WARNING: "args); -#define NOTIMP(args...) fprintf(stderr, "NOTIMP: "args); +#ifdef WITH_DEBUG +#define DEBUG(args) printf args; +#else +#define DEBUG(args) +#endif + +#ifdef WITH_DEBUG_KBD +#define DEBUG_KBD(args) printf args; +#else +#define DEBUG_KBD(args) +#endif -#ifdef RDP_DEBUG -#define DEBUG(args...) fprintf(stderr, args); +#ifdef WITH_DEBUG_RDP5 +#define DEBUG_RDP5(args) printf args; #else -#define DEBUG(args...) +#define DEBUG_RDP5(args) #endif +#ifdef WITH_DEBUG_CLIPBOARD +#define DEBUG_CLIPBOARD(args) printf args; +#else +#define DEBUG_CLIPBOARD(args) +#endif + +#define STRNCPY(dst,src,n) { strncpy(dst,src,n-1); dst[n-1] = 0; } + #include "constants.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; + #ifndef MAKE_PROTO #include "proto.h" #endif