/[rdesktop]/sourceforge.net/trunk/rdesktop/orders.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/orders.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 15 by matty, Thu Sep 28 05:27:25 2000 UTC revision 375 by jsorg71, Fri May 16 21:55:14 2003 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     RDP order processing     RDP order processing
4     Copyright (C) Matthew Chapman 1999-2000     Copyright (C) Matthew Chapman 1999-2002
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
# Line 33  enum RDP_ORDER_TYPE Line 33  enum RDP_ORDER_TYPE
33          RDP_ORDER_PATBLT = 1,          RDP_ORDER_PATBLT = 1,
34          RDP_ORDER_SCREENBLT = 2,          RDP_ORDER_SCREENBLT = 2,
35          RDP_ORDER_LINE = 9,          RDP_ORDER_LINE = 9,
36          RDP_ORDER_RECT = 10,          RDP_ORDER_RECT = 10,
37          RDP_ORDER_DESKSAVE = 11,          RDP_ORDER_DESKSAVE = 11,
38          RDP_ORDER_MEMBLT = 13,          RDP_ORDER_MEMBLT = 13,
39          RDP_ORDER_TRIBLT = 14,          RDP_ORDER_TRIBLT = 14,
# Line 51  enum RDP_SECONDARY_ORDER_TYPE Line 51  enum RDP_SECONDARY_ORDER_TYPE
51    
52  typedef struct _DESTBLT_ORDER  typedef struct _DESTBLT_ORDER
53  {  {
54          uint16 x;          sint16 x;
55          uint16 y;          sint16 y;
56          uint16 cx;          sint16 cx;
57          uint16 cy;          sint16 cy;
58          uint8 opcode;          uint8 opcode;
59    
60  } DESTBLT_ORDER;  }
61    DESTBLT_ORDER;
62    
63  typedef struct _PATBLT_ORDER  typedef struct _PATBLT_ORDER
64  {  {
65          uint16 x;          sint16 x;
66          uint16 y;          sint16 y;
67          uint16 cx;          sint16 cx;
68          uint16 cy;          sint16 cy;
69          uint8 opcode;          uint8 opcode;
70          uint8 bgcolour;          uint32 bgcolour;
71          uint8 fgcolour;          uint32 fgcolour;
72          BRUSH brush;          BRUSH brush;
73    
74  } PATBLT_ORDER;  }
75    PATBLT_ORDER;
76    
77  typedef struct _SCREENBLT_ORDER  typedef struct _SCREENBLT_ORDER
78  {  {
79          uint16 x;          sint16 x;
80          uint16 y;          sint16 y;
81          uint16 cx;          sint16 cx;
82          uint16 cy;          sint16 cy;
83          uint8 opcode;          uint8 opcode;
84          uint16 srcx;          sint16 srcx;
85          uint16 srcy;          sint16 srcy;
86    
87  } SCREENBLT_ORDER;  }
88    SCREENBLT_ORDER;
89    
90  typedef struct _LINE_ORDER  typedef struct _LINE_ORDER
91  {  {
92          uint16 mixmode;          uint16 mixmode;
93          uint16 startx;          sint16 startx;
94          uint16 starty;          sint16 starty;
95          uint16 endx;          sint16 endx;
96          uint16 endy;          sint16 endy;
97          uint8 bgcolour;          uint32 bgcolour;
98          uint8 opcode;          uint8 opcode;
99          PEN pen;          PEN pen;
100    
101  } LINE_ORDER;  }
102    LINE_ORDER;
103    
104  typedef struct _RECT_ORDER  typedef struct _RECT_ORDER
105  {  {
106          uint16 x;          sint16 x;
107          uint16 y;          sint16 y;
108          uint16 cx;          sint16 cx;
109          uint16 cy;          sint16 cy;
110          uint8 colour;          uint32 colour;
111    
112  } RECT_ORDER;  }
113    RECT_ORDER;
114    
115  typedef struct _DESKSAVE_ORDER  typedef struct _DESKSAVE_ORDER
116  {  {
117          uint32 offset;          uint32 offset;
118          uint16 left;          sint16 left;
119          uint16 top;          sint16 top;
120          uint16 right;          sint16 right;
121          uint16 bottom;          sint16 bottom;
122          uint8 action;          uint8 action;
123    
124  } DESKSAVE_ORDER;  }
125    DESKSAVE_ORDER;
126    
127  typedef struct _TRIBLT_ORDER  typedef struct _TRIBLT_ORDER
128  {  {
129          uint8 colour_table;          uint8 colour_table;
130          uint8 cache_id;          uint8 cache_id;
131          uint16 x;          sint16 x;
132          uint16 y;          sint16 y;
133          uint16 cx;          sint16 cx;
134          uint16 cy;          sint16 cy;
135          uint8 opcode;          uint8 opcode;
136          uint16 srcx;          sint16 srcx;
137          uint16 srcy;          sint16 srcy;
138          uint8 bgcolour;          uint32 bgcolour;
139          uint8 fgcolour;          uint32 fgcolour;
140          BRUSH brush;          BRUSH brush;
141          uint16 cache_idx;          uint16 cache_idx;
142          uint16 unknown;          uint16 unknown;
143    
144  } TRIBLT_ORDER;  }
145    TRIBLT_ORDER;
146    
147  typedef struct _MEMBLT_ORDER  typedef struct _MEMBLT_ORDER
148  {  {
149          uint8 colour_table;          uint8 colour_table;
150          uint8 cache_id;          uint8 cache_id;
151          uint16 x;          sint16 x;
152          uint16 y;          sint16 y;
153          uint16 cx;          sint16 cx;
154          uint16 cy;          sint16 cy;
155          uint8 opcode;          uint8 opcode;
156          uint16 srcx;          sint16 srcx;
157          uint16 srcy;          sint16 srcy;
158          uint16 cache_idx;          uint16 cache_idx;
159    
160  } MEMBLT_ORDER;  }
161    MEMBLT_ORDER;
162    
163  #define MAX_DATA 256  #define MAX_DATA 256
164    
165  typedef struct _POLYLINE_ORDER  typedef struct _POLYLINE_ORDER
166  {  {
167          uint16 x;          sint16 x;
168          uint16 y;          sint16 y;
169          uint8 flags;          uint8 opcode;
170          uint8 fgcolour;          uint32 fgcolour;
171          uint8 lines;          uint8 lines;
172          uint8 datasize;          uint8 datasize;
173          uint8 data[MAX_DATA];          uint8 data[MAX_DATA];
174    
175  } POLYLINE_ORDER;  }
176    POLYLINE_ORDER;
177    
178  #define MAX_TEXT 256  #define MAX_TEXT 256
179    
# Line 174  typedef struct _TEXT2_ORDER Line 183  typedef struct _TEXT2_ORDER
183          uint8 flags;          uint8 flags;
184          uint8 mixmode;          uint8 mixmode;
185          uint8 unknown;          uint8 unknown;
186          uint8 fgcolour;          uint32 fgcolour;
187          uint8 bgcolour;          uint32 bgcolour;
188          uint16 clipleft;          sint16 clipleft;
189          uint16 cliptop;          sint16 cliptop;
190          uint16 clipright;          sint16 clipright;
191          uint16 clipbottom;          sint16 clipbottom;
192          uint16 boxleft;          sint16 boxleft;
193          uint16 boxtop;          sint16 boxtop;
194          uint16 boxright;          sint16 boxright;
195          uint16 boxbottom;          sint16 boxbottom;
196          uint16 x;          sint16 x;
197          uint16 y;          sint16 y;
198          uint8 length;          uint8 length;
199          uint8 text[MAX_TEXT];          uint8 text[MAX_TEXT];
200    
201  } TEXT2_ORDER;  }
202    TEXT2_ORDER;
203    
204  typedef struct _RDP_ORDER_STATE  typedef struct _RDP_ORDER_STATE
205  {  {
# Line 207  typedef struct _RDP_ORDER_STATE Line 217  typedef struct _RDP_ORDER_STATE
217          POLYLINE_ORDER polyline;          POLYLINE_ORDER polyline;
218          TEXT2_ORDER text2;          TEXT2_ORDER text2;
219    
220  } RDP_ORDER_STATE;  }
221    RDP_ORDER_STATE;
222    
223  typedef struct _RDP_RAW_BMPCACHE_ORDER  typedef struct _RDP_RAW_BMPCACHE_ORDER
224  {  {
# Line 220  typedef struct _RDP_RAW_BMPCACHE_ORDER Line 231  typedef struct _RDP_RAW_BMPCACHE_ORDER
231          uint16 cache_idx;          uint16 cache_idx;
232          uint8 *data;          uint8 *data;
233    
234  } RDP_RAW_BMPCACHE_ORDER;  }
235    RDP_RAW_BMPCACHE_ORDER;
236    
237  typedef struct _RDP_BMPCACHE_ORDER  typedef struct _RDP_BMPCACHE_ORDER
238  {  {
# Line 237  typedef struct _RDP_BMPCACHE_ORDER Line 249  typedef struct _RDP_BMPCACHE_ORDER
249          uint16 final_size;          uint16 final_size;
250          uint8 *data;          uint8 *data;
251    
252  } RDP_BMPCACHE_ORDER;  }
253    RDP_BMPCACHE_ORDER;
254    
255  #define MAX_GLYPH 32  #define MAX_GLYPH 32
256    
# Line 250  typedef struct _RDP_FONT_GLYPH Line 263  typedef struct _RDP_FONT_GLYPH
263          uint16 height;          uint16 height;
264          uint8 data[MAX_GLYPH];          uint8 data[MAX_GLYPH];
265    
266  } RDP_FONT_GLYPH;  }
267    RDP_FONT_GLYPH;
268    
269  #define MAX_GLYPHS 256  #define MAX_GLYPHS 256
270    
# Line 260  typedef struct _RDP_FONTCACHE_ORDER Line 274  typedef struct _RDP_FONTCACHE_ORDER
274          uint8 nglyphs;          uint8 nglyphs;
275          RDP_FONT_GLYPH glyphs[MAX_GLYPHS];          RDP_FONT_GLYPH glyphs[MAX_GLYPHS];
276    
277  } RDP_FONTCACHE_ORDER;  }
278    RDP_FONTCACHE_ORDER;
279    
280  typedef struct _RDP_COLCACHE_ORDER  typedef struct _RDP_COLCACHE_ORDER
281  {  {
282          uint8 cache_id;          uint8 cache_id;
283          COLOURMAP map;          COLOURMAP map;
284    
285  } RDP_COLCACHE_ORDER;  }
286    RDP_COLCACHE_ORDER;

Legend:
Removed from v.15  
changed lines
  Added in v.375

  ViewVC Help
Powered by ViewVC 1.1.26