1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Common data types |
Common data types |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2005 |
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 |
18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
*/ |
20 |
|
|
21 |
|
#ifdef WITH_SCARD |
22 |
|
#ifdef PCSC_OSX |
23 |
|
#include <PCSC/wintypes.h> |
24 |
|
#else |
25 |
|
#include <wintypes.h> |
26 |
|
#endif /* PCSC_OSX */ |
27 |
|
#else |
28 |
typedef int BOOL; |
typedef int BOOL; |
29 |
|
#endif |
30 |
|
|
31 |
#ifndef True |
#ifndef True |
32 |
#define True (1) |
#define True (1) |
45 |
typedef void *HCOLOURMAP; |
typedef void *HCOLOURMAP; |
46 |
typedef void *HCURSOR; |
typedef void *HCURSOR; |
47 |
|
|
48 |
|
typedef struct _POINT |
49 |
|
{ |
50 |
|
sint16 x, y; |
51 |
|
} |
52 |
|
POINT; |
53 |
|
|
54 |
typedef struct _COLOURENTRY |
typedef struct _COLOURENTRY |
55 |
{ |
{ |
56 |
uint8 red; |
uint8 red; |
118 |
|
|
119 |
typedef struct _key_translation |
typedef struct _key_translation |
120 |
{ |
{ |
121 |
|
/* For normal scancode translations */ |
122 |
uint8 scancode; |
uint8 scancode; |
123 |
uint16 modifiers; |
uint16 modifiers; |
124 |
|
/* For sequences. If keysym is nonzero, the fields above are not used. */ |
125 |
|
uint32 seq_keysym; /* Really KeySym */ |
126 |
|
struct _key_translation *next; |
127 |
} |
} |
128 |
key_translation; |
key_translation; |
129 |
|
|
137 |
} |
} |
138 |
VCHANNEL; |
VCHANNEL; |
139 |
|
|
|
typedef struct _BMPCACHEENTRY |
|
|
{ |
|
|
HBITMAP bitmap; |
|
|
uint32 usage; |
|
|
|
|
|
} |
|
|
BMPCACHEENTRY; |
|
|
|
|
140 |
/* PSTCACHE */ |
/* PSTCACHE */ |
141 |
|
typedef uint8 HASH_KEY[8]; |
|
typedef uint8 BITMAP_ID[8]; |
|
142 |
|
|
143 |
/* Header for an entry in the persistent bitmap cache file */ |
/* Header for an entry in the persistent bitmap cache file */ |
144 |
typedef struct _PSTCACHE_CELLHEADER |
typedef struct _PSTCACHE_CELLHEADER |
145 |
{ |
{ |
146 |
BITMAP_ID bitmap_id; |
HASH_KEY key; |
147 |
uint8 width, height; |
uint8 width, height; |
148 |
uint16 length; |
uint16 length; |
149 |
uint32 stamp; |
uint32 stamp; |
256 |
} |
} |
257 |
NOTIFY; |
NOTIFY; |
258 |
|
|
259 |
|
#ifndef PATH_MAX |
260 |
|
#define PATH_MAX 256 |
261 |
|
#endif |
262 |
|
|
263 |
typedef struct fileinfo |
typedef struct fileinfo |
264 |
{ |
{ |
265 |
uint32 device_id, flags_and_attributes, accessmask; |
uint32 device_id, flags_and_attributes, accessmask; |
266 |
char path[256]; |
char path[PATH_MAX]; |
267 |
DIR *pdir; |
DIR *pdir; |
268 |
struct dirent *pdirent; |
struct dirent *pdirent; |
269 |
char pattern[64]; |
char pattern[PATH_MAX]; |
270 |
BOOL delete_on_close; |
BOOL delete_on_close; |
271 |
NOTIFY notify; |
NOTIFY notify; |
272 |
uint32 info_class; |
uint32 info_class; |
273 |
} |
} |
274 |
FILEINFO; |
FILEINFO; |
275 |
|
|
276 |
|
typedef BOOL(*str_handle_lines_t) (const char *line, void *data); |