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.0" |
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 |
|
#define MIN(x,y) (((x) < (y)) ? (x) : (y)) |
53 |
|
|
54 |
|
#include "parse.h" |
55 |
#include "constants.h" |
#include "constants.h" |
56 |
#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; |
|
57 |
|
|
58 |
#ifndef MAKE_PROTO |
#ifndef MAKE_PROTO |
59 |
#include "proto.h" |
#include "proto.h" |