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

Contents of /sourceforge.net/trunk/rdesktop/uiports/xxxwin.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 852 - (show annotations)
Sun Mar 13 07:30:31 2005 UTC (19 years, 3 months ago) by jsorg71
File MIME type: text/plain
File size: 9275 byte(s)
added makefile and new orders

1 /* -*- c-basic-offset: 8 -*-
2 rdesktop: A Remote Desktop Protocol client.
3 User interface services - Generic
4 Copyright (C) Jay Sorg 2004-2005
5
6 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
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #include "../rdesktop.h"
22
23 extern int g_tcp_port_rdp;
24 int g_use_rdp5 = 0;
25 char g_hostname[16];
26 char g_username[64];
27 int g_height = 600;
28 int g_width = 800;
29 int g_server_bpp = 8;
30 int g_encryption = 1;
31 int g_desktop_save = 1;
32 int g_polygon_ellipse_orders = 0;
33 int g_bitmap_cache = 1;
34 int g_bitmap_cache_persist_enable = False;
35 int g_bitmap_cache_precache = True;
36 int g_bitmap_compression = 1;
37 int g_rdp5_performanceflags = 0;
38 int g_console_session = 0;
39 int g_keylayout = 0x409; /* Defaults to US keyboard layout */
40
41 /*****************************************************************************/
42 void ui_bell(void)
43 {
44 }
45
46 /*****************************************************************************/
47 int ui_select(int in)
48 {
49 return 1;
50 }
51
52 /*****************************************************************************/
53 void ui_destroy_cursor(void* cursor)
54 {
55 }
56
57 /*****************************************************************************/
58 void* ui_create_glyph(int width, int height, uint8* data)
59 {
60 return 0;
61 }
62
63 /*****************************************************************************/
64 void ui_destroy_glyph(void* glyph)
65 {
66 }
67
68 /*****************************************************************************/
69 void ui_destroy_bitmap(void* bmp)
70 {
71 }
72
73 /*****************************************************************************/
74 void ui_reset_clip(void)
75 {
76 }
77
78 /*****************************************************************************/
79 void ui_set_clip(int x, int y, int cx, int cy)
80 {
81 }
82
83 /*****************************************************************************/
84 void* ui_create_colourmap(COLOURMAP * colours)
85 {
86 return 0;
87 }
88
89 /*****************************************************************************/
90 void ui_set_colourmap(void* map)
91 {
92 }
93
94 /*****************************************************************************/
95 HBITMAP ui_create_bitmap(int width, int height, uint8* data)
96 {
97 return 0;
98 }
99
100 /*****************************************************************************/
101 void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode,
102 int x, int y,
103 int clipx, int clipy, int clipcx, int clipcy,
104 int boxx, int boxy, int boxcx, int boxcy, BRUSH * brush,
105 int bgcolour, int fgcolour, uint8* text, uint8 length)
106 {
107 }
108
109 /*****************************************************************************/
110 void ui_line(uint8 opcode, int startx, int starty, int endx, int endy,
111 PEN * pen)
112 {
113 }
114
115 /*****************************************************************************/
116 void ui_triblt(uint8 opcode, int x, int y, int cx, int cy,
117 HBITMAP src, int srcx, int srcy,
118 BRUSH* brush, int bgcolour, int fgcolour)
119 {
120 }
121
122 /*****************************************************************************/
123 void ui_memblt(uint8 opcode, int x, int y, int cx, int cy,
124 HBITMAP src, int srcx, int srcy)
125 {
126 }
127
128 /*****************************************************************************/
129 void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
130 {
131 }
132
133 /*****************************************************************************/
134 void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)
135 {
136 }
137
138 /*****************************************************************************/
139 void ui_rect(int x, int y, int cx, int cy, int colour)
140 {
141 }
142
143 /*****************************************************************************/
144 void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy,
145 int srcx, int srcy)
146 {
147 }
148
149 /*****************************************************************************/
150 void ui_patblt(uint8 opcode, int x, int y, int cx, int cy,
151 BRUSH * brush, int bgcolour, int fgcolour)
152 {
153 }
154
155 /*****************************************************************************/
156 void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)
157 {
158 }
159
160 /*****************************************************************************/
161 void ui_move_pointer(int x, int y)
162 {
163 }
164
165 /*****************************************************************************/
166 void ui_set_null_cursor(void)
167 {
168 }
169
170 /*****************************************************************************/
171 void ui_paint_bitmap(int x, int y, int cx, int cy,
172 int width, int height, uint8* data)
173 {
174 }
175
176 /*****************************************************************************/
177 void ui_set_cursor(HCURSOR cursor)
178 {
179 }
180
181 /*****************************************************************************/
182 HCURSOR ui_create_cursor(unsigned int x, unsigned int y,
183 int width, int height,
184 uint8* andmask, uint8* xormask)
185 {
186 return 0;
187 }
188
189 /*****************************************************************************/
190 uint16 ui_get_numlock_state(unsigned int state)
191 {
192 return 0;
193 }
194
195 /*****************************************************************************/
196 unsigned int read_keyboard_state(void)
197 {
198 return 0;
199 }
200
201 /*****************************************************************************/
202 void ui_resize_window(void)
203 {
204 }
205
206 /*****************************************************************************/
207 void ui_begin_update(void)
208 {
209 }
210
211 /*****************************************************************************/
212 void ui_end_update(void)
213 {
214 }
215
216 /*****************************************************************************/
217 void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints,
218 BRUSH * brush, int bgcolour, int fgcolour)
219 {
220 }
221
222 /*****************************************************************************/
223 /* todo, use qt function for this (QPainter::drawPolyline) */
224 void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen)
225 {
226 int i, x, y, dx, dy;
227 if (npoints > 0)
228 {
229 x = points[0].x;
230 y = points[0].y;
231 for (i = 1; i < npoints; i++)
232 {
233 dx = points[i].x;
234 dy = points[i].y;
235 ui_line(opcode, x, y, x + dx, y + dy, pen);
236 x = x + dx;
237 y = y + dy;
238 }
239 }
240 }
241
242 /*****************************************************************************/
243 void ui_ellipse(uint8 opcode, uint8 fillmode,
244 int x, int y, int cx, int cy,
245 BRUSH * brush, int bgcolour, int fgcolour)
246 {
247 }
248
249 /*****************************************************************************/
250 void generate_random(uint8* random)
251 {
252 }
253
254 /*****************************************************************************/
255 void save_licence(uint8* data, int length)
256 {
257 }
258
259 /*****************************************************************************/
260 int load_licence(uint8** data)
261 {
262 return 0;
263 }
264
265 /*****************************************************************************/
266 void* xrealloc(void* in, int size)
267 {
268 return 0;
269 }
270
271 /*****************************************************************************/
272 void* xmalloc(int size)
273 {
274 return 0;
275 }
276
277 /*****************************************************************************/
278 void xfree(void* in)
279 {
280 }
281
282 /*****************************************************************************/
283 void warning(char* format, ...)
284 {
285 }
286
287 /*****************************************************************************/
288 void unimpl(char* format, ...)
289 {
290 }
291
292 /*****************************************************************************/
293 void error(char* format, ...)
294 {
295 }
296
297 /*****************************************************************************/
298 BOOL rd_pstcache_mkdir(void)
299 {
300 return 0;
301 }
302
303 /*****************************************************************************/
304 int rd_open_file(char *filename)
305 {
306 return 0;
307 }
308
309 /*****************************************************************************/
310 void rd_close_file(int fd)
311 {
312 return;
313 }
314
315 /*****************************************************************************/
316 int rd_read_file(int fd, void *ptr, int len)
317 {
318 return 0;
319 }
320
321 /*****************************************************************************/
322 int rd_write_file(int fd, void* ptr, int len)
323 {
324 return 0;
325 }
326
327 /*****************************************************************************/
328 int rd_lseek_file(int fd, int offset)
329 {
330 return 0;
331 }
332
333 /*****************************************************************************/
334 BOOL rd_lock_file(int fd, int start, int len)
335 {
336 return False;
337 }
338
339 /*****************************************************************************/
340 int main(int c, char** p)
341 {
342 return 0;
343 }

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26