ReactOS 0.4.15-dev-5664-g3bf4ef6
xxxwin.c
Go to the documentation of this file.
1/* -*- c-basic-offset: 8 -*-
2 rdesktop: A Remote Desktop Protocol client.
3 User interface services - Generic
4 Copyright (C) Jay Sorg 2004-2006
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 along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*/
20
21#include "../rdesktop.h"
22
23extern int g_tcp_port_rdp;
24int g_use_rdp5 = 0;
25char g_hostname[16];
26char g_username[64];
27int g_height = 600;
28int g_width = 800;
39int g_keylayout = 0x409; /* Defaults to US keyboard layout */
40int g_keyboard_type = 0x4; /* Defaults to US keyboard layout */
41int g_keyboard_subtype = 0x0; /* Defaults to US keyboard layout */
42int g_keyboard_functionkeys = 0xc; /* Defaults to US keyboard layout */
43/* Session Directory redirection */
51
52/*****************************************************************************/
53void ui_bell(void)
54{
55}
56
57/*****************************************************************************/
58int ui_select(int in)
59{
60 return 1;
61}
62
63/*****************************************************************************/
65{
66}
67
68/*****************************************************************************/
70{
71 return 0;
72}
73
74/*****************************************************************************/
75void ui_destroy_glyph(void* glyph)
76{
77}
78
79/*****************************************************************************/
81{
82}
83
84/*****************************************************************************/
85void ui_reset_clip(void)
86{
87}
88
89/*****************************************************************************/
90void ui_set_clip(int x, int y, int cx, int cy)
91{
92}
93
94/*****************************************************************************/
96{
97 return 0;
98}
99
100/*****************************************************************************/
102{
103}
104
105/*****************************************************************************/
107{
108 return 0;
109}
110
111/*****************************************************************************/
112void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode,
113 int x, int y,
114 int clipx, int clipy, int clipcx, int clipcy,
115 int boxx, int boxy, int boxcx, int boxcy, BRUSH * brush,
116 int bgcolour, int fgcolour, uint8* text, uint8 length)
117{
118}
119
120/*****************************************************************************/
121void ui_line(uint8 opcode, int startx, int starty, int endx, int endy,
122 PEN * pen)
123{
124}
125
126/*****************************************************************************/
127void ui_triblt(uint8 opcode, int x, int y, int cx, int cy,
128 HBITMAP src, int srcx, int srcy,
129 BRUSH* brush, int bgcolour, int fgcolour)
130{
131}
132
133/*****************************************************************************/
134void ui_memblt(uint8 opcode, int x, int y, int cx, int cy,
135 HBITMAP src, int srcx, int srcy)
136{
137}
138
139/*****************************************************************************/
140void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
141{
142}
143
144/*****************************************************************************/
145void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)
146{
147}
148
149/*****************************************************************************/
150void ui_rect(int x, int y, int cx, int cy, int colour)
151{
152}
153
154/*****************************************************************************/
155void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy,
156 int srcx, int srcy)
157{
158}
159
160/*****************************************************************************/
161void ui_patblt(uint8 opcode, int x, int y, int cx, int cy,
162 BRUSH * brush, int bgcolour, int fgcolour)
163{
164}
165
166/*****************************************************************************/
167void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)
168{
169}
170
171/*****************************************************************************/
172void ui_move_pointer(int x, int y)
173{
174}
175
176/*****************************************************************************/
178{
179}
180
181/*****************************************************************************/
182void ui_paint_bitmap(int x, int y, int cx, int cy,
183 int width, int height, uint8* data)
184{
185}
186
187/*****************************************************************************/
189{
190}
191
192/*****************************************************************************/
193HCURSOR ui_create_cursor(unsigned int x, unsigned int y,
194 int width, int height,
195 uint8* andmask, uint8* xormask)
196{
197 return 0;
198}
199
200/*****************************************************************************/
202{
203 return 0;
204}
205
206/*****************************************************************************/
207unsigned int read_keyboard_state(void)
208{
209 return 0;
210}
211
212/*****************************************************************************/
214{
215}
216
217/*****************************************************************************/
219{
220}
221
222/*****************************************************************************/
224{
225}
226
227/*****************************************************************************/
228void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints,
229 BRUSH * brush, int bgcolour, int fgcolour)
230{
231}
232
233/*****************************************************************************/
234/* todo, use qt function for this (QPainter::drawPolyline) */
235void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen)
236{
237 int i, x, y, dx, dy;
238 if (npoints > 0)
239 {
240 x = points[0].x;
241 y = points[0].y;
242 for (i = 1; i < npoints; i++)
243 {
244 dx = points[i].x;
245 dy = points[i].y;
246 ui_line(opcode, x, y, x + dx, y + dy, pen);
247 x = x + dx;
248 y = y + dy;
249 }
250 }
251}
252
253/*****************************************************************************/
254void ui_ellipse(uint8 opcode, uint8 fillmode,
255 int x, int y, int cx, int cy,
256 BRUSH * brush, int bgcolour, int fgcolour)
257{
258}
259
260/*****************************************************************************/
262{
263}
264
265/*****************************************************************************/
267{
268}
269
270/*****************************************************************************/
272{
273 return 0;
274}
275
276/*****************************************************************************/
277void* xrealloc(void* in, int size)
278{
279 return 0;
280}
281
282/*****************************************************************************/
283void* xmalloc(int size)
284{
285 return 0;
286}
287
288/*****************************************************************************/
289void xfree(void* in)
290{
291}
292
293/*****************************************************************************/
294char * xstrdup(const char * s)
295{
296 char * mem = strdup(s);
297 if (mem == NULL)
298 {
299 perror("strdup");
300 exit(1);
301 }
302 return mem;
303}
304/*****************************************************************************/
305void warning(char* format, ...)
306{
307}
308
309/*****************************************************************************/
310void unimpl(char* format, ...)
311{
312}
313
314/*****************************************************************************/
315void error(char* format, ...)
316{
317}
318
319/*****************************************************************************/
321{
322 return 0;
323}
324
325/*****************************************************************************/
327{
328 return 0;
329}
330
331/*****************************************************************************/
333{
334 return;
335}
336
337/*****************************************************************************/
338int rd_read_file(int fd, void *ptr, int len)
339{
340 return 0;
341}
342
343/*****************************************************************************/
344int rd_write_file(int fd, void* ptr, int len)
345{
346 return 0;
347}
348
349/*****************************************************************************/
351{
352 return 0;
353}
354
355/*****************************************************************************/
357{
358 return False;
359}
360
361/*****************************************************************************/
362int main(int c, char** p)
363{
364 return 0;
365}
static int state
Definition: maze.c:121
unsigned short uint16
Definition: types.h:30
unsigned int uint32
Definition: types.h:32
#define False
Definition: types.h:25
#define True
Definition: types.h:24
unsigned char uint8
Definition: types.h:28
Definition: brush.hpp:16
Definition: _map.h:48
#define NULL
Definition: types.h:112
const WCHAR * text
Definition: package.c:1799
int main()
Definition: test.c:6
POINTL point
Definition: edittest.c:50
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint start
Definition: gl.h:1545
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLdouble s
Definition: gl.h:2039
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
GLsizeiptr size
Definition: glext.h:5919
GLenum src
Definition: glext.h:6340
const GLubyte * c
Definition: glext.h:8905
GLuint in
Definition: glext.h:9616
GLbitfield flags
Definition: glext.h:7161
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLfloat GLfloat p
Definition: glext.h:8902
GLenum GLsizei len
Definition: glext.h:6722
GLsizei const GLfloat * points
Definition: glext.h:8112
GLintptr offset
Definition: glext.h:5920
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
const char cursor[]
Definition: icontest.c:13
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
const char * filename
Definition: ioapi.h:137
GLint dy
Definition: linetemp.h:97
GLint dx
Definition: linetemp.h:97
#define error(str)
Definition: mkdosfs.c:1605
static PVOID ptr
Definition: dispmode.c:27
BITMAP bmp
Definition: alphablend.c:62
static HBITMAP
Definition: button.c:44
Definition: mk_font.cpp:20
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:586
_Out_opt_ int * cx
Definition: commctrl.h:585
#define random
Definition: rosdhcp.h:81
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
#define warning(s)
Definition: debug.h:83
#define exit(n)
Definition: config.h:202
static int fd
Definition: io.c:51
Definition: types.h:83
Definition: mem.c:156
HICON HCURSOR
Definition: windef.h:299
HBITMAP ui_create_bitmap(int width, int height, uint8 *data)
Definition: xxxwin.c:106
char g_redirect_cookie[128]
Definition: xxxwin.c:49
void ui_polygon(uint8 opcode, uint8 fillmode, POINT *point, int npoints, BRUSH *brush, int bgcolour, int fgcolour)
Definition: xxxwin.c:228
int g_server_depth
Definition: xxxwin.c:29
void ui_rect(int x, int y, int cx, int cy, int colour)
Definition: xxxwin.c:150
void * ui_create_colourmap(COLOURMAP *colours)
Definition: xxxwin.c:95
void ui_bell(void)
Definition: xxxwin.c:53
BOOL rd_pstcache_mkdir(void)
Definition: xxxwin.c:320
void ui_patblt(uint8 opcode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
Definition: xxxwin.c:161
HCURSOR ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 *andmask, uint8 *xormask)
Definition: xxxwin.c:193
int g_width
Definition: xxxwin.c:28
void ui_destroy_bitmap(void *bmp)
Definition: xxxwin.c:80
uint16 ui_get_numlock_state(unsigned int state)
Definition: xxxwin.c:201
int g_rdp5_performanceflags
Definition: xxxwin.c:37
int g_height
Definition: xxxwin.c:27
int rd_write_file(int fd, void *ptr, int len)
Definition: xxxwin.c:344
BOOL rd_lock_file(int fd, int start, int len)
Definition: xxxwin.c:356
int g_tcp_port_rdp
Definition: tcp.c:75
char g_redirect_username[64]
Definition: xxxwin.c:48
void ui_destroy_cursor(void *cursor)
Definition: xxxwin.c:64
char * xstrdup(const char *s)
Definition: xxxwin.c:294
void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy)
Definition: xxxwin.c:155
int rd_read_file(int fd, void *ptr, int len)
Definition: xxxwin.c:338
void ui_set_null_cursor(void)
Definition: xxxwin.c:177
int g_keyboard_type
Definition: xxxwin.c:40
void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 *data)
Definition: xxxwin.c:182
int g_keylayout
Definition: xxxwin.c:39
int g_use_rdp5
Definition: xxxwin.c:24
void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)
Definition: xxxwin.c:145
void * xrealloc(void *in, int size)
Definition: xxxwin.c:277
void ui_ellipse(uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
Definition: xxxwin.c:254
unsigned int read_keyboard_state(void)
Definition: xxxwin.c:207
void ui_polyline(uint8 opcode, POINT *points, int npoints, PEN *pen)
Definition: xxxwin.c:235
int g_console_session
Definition: xxxwin.c:38
int ui_select(int in)
Definition: xxxwin.c:58
char g_redirect_domain[16]
Definition: xxxwin.c:46
int g_keyboard_functionkeys
Definition: xxxwin.c:42
void ui_triblt(uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy, BRUSH *brush, int bgcolour, int fgcolour)
Definition: xxxwin.c:127
int load_licence(uint8 **data)
Definition: xxxwin.c:271
void rd_close_file(int fd)
Definition: xxxwin.c:332
void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y, int clipx, int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy, BRUSH *brush, int bgcolour, int fgcolour, uint8 *text, uint8 length)
Definition: xxxwin.c:112
char g_hostname[16]
Definition: xxxwin.c:25
void ui_set_colourmap(void *map)
Definition: xxxwin.c:101
void xfree(void *in)
Definition: xxxwin.c:289
int g_bitmap_cache
Definition: xxxwin.c:33
void unimpl(char *format,...)
Definition: xxxwin.c:310
void ui_line(uint8 opcode, int startx, int starty, int endx, int endy, PEN *pen)
Definition: xxxwin.c:121
int g_encryption
Definition: xxxwin.c:30
char g_redirect_password[64]
Definition: xxxwin.c:47
void ui_set_cursor(HCURSOR cursor)
Definition: xxxwin.c:188
int g_keyboard_subtype
Definition: xxxwin.c:41
int g_bitmap_compression
Definition: xxxwin.c:36
void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)
Definition: xxxwin.c:167
void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
Definition: xxxwin.c:140
void ui_set_clip(int x, int y, int cx, int cy)
Definition: xxxwin.c:90
char g_username[64]
Definition: xxxwin.c:26
void ui_resize_window(void)
Definition: xxxwin.c:213
void * ui_create_glyph(int width, int height, uint8 *data)
Definition: xxxwin.c:69
int g_bitmap_cache_precache
Definition: xxxwin.c:35
int g_bitmap_cache_persist_enable
Definition: xxxwin.c:34
void ui_reset_clip(void)
Definition: xxxwin.c:85
void save_licence(uint8 *data, int length)
Definition: xxxwin.c:266
void ui_memblt(uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy)
Definition: xxxwin.c:134
void ui_begin_update(void)
Definition: xxxwin.c:218
BOOL g_redirect
Definition: xxxwin.c:44
char g_redirect_server[64]
Definition: xxxwin.c:45
int rd_lseek_file(int fd, int offset)
Definition: xxxwin.c:350
int rd_open_file(char *filename)
Definition: xxxwin.c:326
void ui_move_pointer(int x, int y)
Definition: xxxwin.c:172
int g_desktop_save
Definition: xxxwin.c:31
void generate_random(uint8 *random)
Definition: xxxwin.c:261
void * xmalloc(int size)
Definition: xxxwin.c:283
uint32 g_redirect_flags
Definition: xxxwin.c:50
int g_polygon_ellipse_orders
Definition: xxxwin.c:32
void ui_end_update(void)
Definition: xxxwin.c:223
void ui_destroy_glyph(void *glyph)
Definition: xxxwin.c:75