ReactOS 0.4.16-dev-329-g9223134
types.h
Go to the documentation of this file.
1/*
2 rdesktop: A Remote Desktop Protocol client.
3 Common data types
4 Copyright (C) Matthew Chapman 1999-2008
5 Copyright 2014 Henrik Andersson <hean01@cendio.se> for Cendio AB
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21typedef int RD_BOOL;
22
23#ifndef True
24#define True (1)
25#define False (0)
26#endif
27
28typedef unsigned char uint8;
29typedef signed char sint8;
30typedef unsigned short uint16;
31typedef signed short sint16;
32typedef unsigned int uint32;
33typedef signed int sint32;
34
35typedef void *RD_HBITMAP;
36typedef void *RD_HGLYPH;
37typedef void *RD_HCOLOURMAP;
38typedef void *RD_HCURSOR;
39
40
41typedef enum _RDP_VERSION
42{
43 RDP_V4 = 4,
44 RDP_V5 = 5,
45 RDP_V6 = 6
47
48
49typedef struct _RD_POINT
50{
52}
54
55typedef struct _COLOURENTRY
56{
60
61}
63
64typedef struct _COLOURMAP
65{
68
69}
71
72typedef struct _BOUNDS
73{
78
79}
81
82typedef struct _PEN
83{
87
88}
90
91/* this is whats in the brush cache */
92typedef struct _BRUSHDATA
93{
97}
99
100typedef struct _BRUSH
101{
107}
109
110typedef struct _FONTGLYPH
111{
117
118}
120
121typedef struct _DATABLOB
122{
123 void *data;
124 int size;
125
126}
128
129typedef struct _key_translation
130{
131 /* For normal scancode translations */
134 /* For sequences. If keysym is nonzero, the fields above are not used. */
135 uint32 seq_keysym; /* Really KeySym */
137}
139
141{
143 /* The full KeySym for this entry, not KEYMAP_MASKed */
145 /* This will be non-NULL if there has been a hash collision */
147}
149
150typedef struct _VCHANNEL
151{
153 char name[8];
155 struct stream in;
157}
159
160/* PSTCACHE */
161typedef uint8 HASH_KEY[8];
162
163/* Header for an entry in the persistent bitmap cache file */
165{
170}
172
173#define MAX_CBSIZE 256
174
175/* RDPSND */
176typedef struct _RD_WAVEFORMATEX
177{
187
188typedef struct _RDPCOMP
189{
192 struct stream ns;
193}
195
196/* RDPDR */
199
200typedef struct _DEVICE_FNS
201{
202 RD_NTSTATUS(*create) (uint32 device, uint32 desired_access, uint32 share_mode,
203 uint32 create_disposition, uint32 flags_and_attributes,
204 char *filename, RD_NTHANDLE * handle);
207 uint32 * result);
209 uint32 * result);
211}
213
214
215typedef struct rdpdr_device_info
216{
219 char name[8];
222}
224
226{
227 int dtr;
228 int rts;
240 struct termios *ptermios, *pold_termios;
242}
244
246{
257}
259
260typedef struct rdpdr_printer_info
261{
267}
269
270typedef struct notify_data
271{
275 unsigned int num_entries;
276}
278
279#ifndef PATH_MAX
280#define PATH_MAX 256
281#endif
282
283typedef struct fileinfo
284{
293}
295
296typedef RD_BOOL(*str_handle_lines_t) (const char *line, void *data);
#define RDP_MPPC_DICT_SIZE
Definition: constants.h:358
struct stream * STREAM
struct rdpdr_parallel_device_info PARALLEL_DEVICE
signed int sint32
Definition: types.h:33
unsigned short uint16
Definition: types.h:30
struct _VCHANNEL VCHANNEL
void * RD_HGLYPH
Definition: types.h:36
unsigned int uint32
Definition: types.h:32
#define MAX_CBSIZE
Definition: types.h:173
signed char sint8
Definition: types.h:29
struct rdpdr_device_info RDPDR_DEVICE
struct _RD_POINT RD_POINT
struct _DATABLOB DATABLOB
struct _BRUSHDATA BRUSHDATA
struct _FONTGLYPH FONTGLYPH
struct rdpdr_serial_device_info SERIAL_DEVICE
void * RD_HCOLOURMAP
Definition: types.h:37
void * RD_HCURSOR
Definition: types.h:38
struct _RDPCOMP RDPCOMP
uint32 RD_NTSTATUS
Definition: types.h:197
RD_BOOL(* str_handle_lines_t)(const char *line, void *data)
Definition: types.h:296
struct _RD_WAVEFORMATEX RD_WAVEFORMATEX
uint8 HASH_KEY[8]
Definition: types.h:161
void * RD_HBITMAP
Definition: types.h:35
signed short sint16
Definition: types.h:31
struct notify_data NOTIFY
struct _BRUSH BRUSH
_RDP_VERSION
Definition: types.h:42
@ RDP_V6
Definition: types.h:45
@ RDP_V5
Definition: types.h:44
@ RDP_V4
Definition: types.h:43
struct _PEN PEN
struct _key_translation key_translation
uint32 RD_NTHANDLE
Definition: types.h:198
struct fileinfo FILEINFO
struct _key_translation_entry key_translation_entry
struct rdpdr_printer_info PRINTER
enum _RDP_VERSION RDP_VERSION
struct _COLOURMAP COLOURMAP
int RD_BOOL
Definition: types.h:21
struct _PSTCACHE_CELLHEADER CELLHEADER
struct _BOUNDS BOUNDS
unsigned char uint8
Definition: types.h:28
struct _DEVICE_FNS DEVICE_FNS
#define PATH_MAX
Definition: types.h:280
struct _COLOURENTRY COLOURENTRY
__kernel_time_t time_t
Definition: linux.h:252
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLubyte * pattern
Definition: glext.h:7787
GLuint in
Definition: glext.h:9616
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLuint64EXT * result
Definition: glext.h:11304
GLintptr offset
Definition: glext.h:5920
const char * filename
Definition: ioapi.h:137
unsigned short uint16
Definition: types.h:32
unsigned int uint32
Definition: types.h:34
uint8 HASH_KEY[8]
Definition: types.h:145
signed short sint16
Definition: types.h:33
unsigned char uint8
Definition: types.h:30
static FILE * out
Definition: regtests2xml.c:44
Definition: dirent.h:40
Definition: types.h:73
sint16 left
Definition: types.h:74
sint16 top
Definition: types.h:75
sint16 right
Definition: types.h:76
sint16 bottom
Definition: types.h:77
uint32 data_size
Definition: types.h:95
uint8 * data
Definition: types.h:96
uint32 colour_code
Definition: types.h:94
Definition: types.h:101
uint8 xorigin
Definition: types.h:102
uint8 yorigin
Definition: types.h:103
BRUSHDATA * bd
Definition: types.h:106
uint8 style
Definition: types.h:104
uint8 red
Definition: types.h:57
uint8 blue
Definition: types.h:59
uint8 green
Definition: types.h:58
uint16 ncolours
Definition: types.h:66
COLOURENTRY * colours
Definition: types.h:67
void * data
Definition: types.h:123
int size
Definition: types.h:124
RD_NTSTATUS(* read)(RD_NTHANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result)
Definition: types.h:206
RD_NTSTATUS(* close)(RD_NTHANDLE handle)
Definition: types.h:205
RD_NTSTATUS(* device_control)(RD_NTHANDLE handle, uint32 request, STREAM in, STREAM out)
Definition: types.h:210
RD_NTSTATUS(* create)(uint32 device, uint32 desired_access, uint32 share_mode, uint32 create_disposition, uint32 flags_and_attributes, char *filename, RD_NTHANDLE *handle)
Definition: types.h:202
RD_NTSTATUS(* write)(RD_NTHANDLE handle, uint8 *data, uint32 length, uint32 offset, uint32 *result)
Definition: types.h:208
uint16 width
Definition: types.h:114
sint16 baseline
Definition: types.h:113
uint16 height
Definition: types.h:115
sint16 offset
Definition: types.h:112
RD_HBITMAP pixmap
Definition: types.h:116
Definition: types.h:83
uint8 style
Definition: types.h:84
uint8 width
Definition: types.h:85
uint32 colour
Definition: types.h:86
HASH_KEY key
Definition: types.h:166
uint32 roff
Definition: types.h:190
uint8 hist[RDP_MPPC_DICT_SIZE]
Definition: types.h:191
sint16 x
Definition: types.h:51
sint16 y
Definition: types.h:51
uint16 wFormatTag
Definition: types.h:178
uint32 nAvgBytesPerSec
Definition: types.h:181
uint16 cbSize
Definition: types.h:184
uint16 nChannels
Definition: types.h:179
uint8 cb[MAX_CBSIZE]
Definition: types.h:185
uint32 nSamplesPerSec
Definition: types.h:180
uint16 nBlockAlign
Definition: types.h:182
uint16 wBitsPerSample
Definition: types.h:183
uint32 flags
Definition: types.h:154
uint16 mcs_id
Definition: types.h:152
Definition: types.h:141
key_translation * tr
Definition: types.h:142
uint32 keysym
Definition: types.h:144
struct _key_translation_entry * next
Definition: types.h:146
uint16 modifiers
Definition: types.h:133
uint8 scancode
Definition: types.h:132
uint32 seq_keysym
Definition: types.h:135
struct _key_translation * next
Definition: types.h:136
Definition: devices.h:37
Definition: fatfs.h:198
uint32 info_class
Definition: types.h:292
uint32 device_id
Definition: types.h:285
RD_BOOL delete_on_close
Definition: types.h:290
struct dirent * pdirent
Definition: types.h:288
NOTIFY notify
Definition: types.h:291
uint32 accessmask
Definition: types.h:285
uint32 flags_and_attributes
Definition: types.h:285
DIR * pdir
Definition: types.h:287
Definition: parser.c:49
Definition: name.c:39
time_t total_time
Definition: types.h:274
time_t status_time
Definition: types.h:273
unsigned int num_entries
Definition: types.h:275
time_t modify_time
Definition: types.h:272
Definition: mxnamespace.c:45
uint32 device_type
Definition: types.h:217
char * local_path
Definition: types.h:220
void * pdevice_data
Definition: types.h:221
RD_NTHANDLE handle
Definition: types.h:218
uint32 write_total_timeout_multiplier
Definition: types.h:254
uint32 read_total_timeout_constant
Definition: types.h:253
uint32 read_total_timeout_multiplier
Definition: types.h:252
uint32 write_total_timeout_constant
Definition: types.h:255
uint32 read_interval_timeout
Definition: types.h:251
char * printer
Definition: types.h:263
char * driver
Definition: types.h:263
uint32 bloblen
Definition: types.h:264
RD_BOOL default_printer
Definition: types.h:266
FILE * printer_fp
Definition: types.h:262
uint8 * blob
Definition: types.h:265
struct termios * ptermios
Definition: types.h:240
struct termios * pold_termios
Definition: types.h:240
uint32 read_interval_timeout
Definition: types.h:234
uint32 read_total_timeout_multiplier
Definition: types.h:235
uint32 write_total_timeout_multiplier
Definition: types.h:237
uint32 write_total_timeout_constant
Definition: types.h:237
uint32 read_total_timeout_constant
Definition: types.h:236
Definition: tftpd.h:86
Definition: parse.h:23