-/* -*- c-basic-offset: 8 -*-\r
- rdesktop: A Remote Desktop Protocol client.\r
- User interface services - Generic\r
- Copyright (C) Jay Sorg 2004-2006\r
-\r
- This program is free software; you can redistribute it and/or modify\r
- it under the terms of the GNU General Public License as published by\r
- the Free Software Foundation; either version 2 of the License, or\r
- (at your option) any later version.\r
-\r
- This program is distributed in the hope that it will be useful,\r
- but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- GNU General Public License for more details.\r
-\r
- You should have received a copy of the GNU General Public License\r
- along with this program; if not, write to the Free Software\r
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
-*/\r
-\r
-#include "../rdesktop.h"\r
-\r
-extern int g_tcp_port_rdp;\r
-int g_use_rdp5 = 0;\r
-char g_hostname[16];\r
-char g_username[64];\r
-int g_height = 600;\r
-int g_width = 800;\r
-int g_server_depth = 8;\r
-int g_encryption = 1;\r
-int g_desktop_save = 1;\r
-int g_polygon_ellipse_orders = 0;\r
-int g_bitmap_cache = 1;\r
-int g_bitmap_cache_persist_enable = False;\r
-int g_bitmap_cache_precache = True;\r
-int g_bitmap_compression = 1;\r
-int g_rdp5_performanceflags = 0;\r
-int g_console_session = 0;\r
-int g_keylayout = 0x409; /* Defaults to US keyboard layout */\r
-int g_keyboard_type = 0x4; /* Defaults to US keyboard layout */\r
-int g_keyboard_subtype = 0x0; /* Defaults to US keyboard layout */\r
-int g_keyboard_functionkeys = 0xc; /* Defaults to US keyboard layout */\r
-/* Session Directory redirection */\r
-BOOL g_redirect = False;\r
-char g_redirect_server[64];\r
-char g_redirect_domain[16];\r
-char g_redirect_password[64];\r
-char g_redirect_username[64];\r
-char g_redirect_cookie[128];\r
-uint32 g_redirect_flags = 0;\r
-\r
-/*****************************************************************************/\r
-void ui_bell(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-int ui_select(int in)\r
-{\r
- return 1;\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_destroy_cursor(void* cursor)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void* ui_create_glyph(int width, int height, uint8* data)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_destroy_glyph(void* glyph)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_destroy_bitmap(void* bmp)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_reset_clip(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_set_clip(int x, int y, int cx, int cy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void* ui_create_colourmap(COLOURMAP * colours)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_set_colourmap(void* map)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-HBITMAP ui_create_bitmap(int width, int height, uint8* data)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode,\r
- int x, int y,\r
- int clipx, int clipy, int clipcx, int clipcy,\r
- int boxx, int boxy, int boxcx, int boxcy, BRUSH * brush,\r
- int bgcolour, int fgcolour, uint8* text, uint8 length)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_line(uint8 opcode, int startx, int starty, int endx, int endy,\r
- PEN * pen)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_triblt(uint8 opcode, int x, int y, int cx, int cy,\r
- HBITMAP src, int srcx, int srcy,\r
- BRUSH* brush, int bgcolour, int fgcolour)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_memblt(uint8 opcode, int x, int y, int cx, int cy,\r
- HBITMAP src, int srcx, int srcy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_rect(int x, int y, int cx, int cy, int colour)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy,\r
- int srcx, int srcy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_patblt(uint8 opcode, int x, int y, int cx, int cy,\r
- BRUSH * brush, int bgcolour, int fgcolour)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_move_pointer(int x, int y)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_set_null_cursor(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_paint_bitmap(int x, int y, int cx, int cy,\r
- int width, int height, uint8* data)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_set_cursor(HCURSOR cursor)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-HCURSOR ui_create_cursor(unsigned int x, unsigned int y,\r
- int width, int height,\r
- uint8* andmask, uint8* xormask)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-uint16 ui_get_numlock_state(unsigned int state)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-unsigned int read_keyboard_state(void)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_resize_window(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_begin_update(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_end_update(void)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints,\r
- BRUSH * brush, int bgcolour, int fgcolour)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-/* todo, use qt function for this (QPainter::drawPolyline) */\r
-void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen)\r
-{\r
- int i, x, y, dx, dy;\r
- if (npoints > 0)\r
- {\r
- x = points[0].x;\r
- y = points[0].y;\r
- for (i = 1; i < npoints; i++)\r
- {\r
- dx = points[i].x;\r
- dy = points[i].y;\r
- ui_line(opcode, x, y, x + dx, y + dy, pen);\r
- x = x + dx;\r
- y = y + dy;\r
- }\r
- }\r
-}\r
-\r
-/*****************************************************************************/\r
-void ui_ellipse(uint8 opcode, uint8 fillmode,\r
- int x, int y, int cx, int cy,\r
- BRUSH * brush, int bgcolour, int fgcolour)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void generate_random(uint8* random)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void save_licence(uint8* data, int length)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-int load_licence(uint8** data)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void* xrealloc(void* in, int size)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void* xmalloc(int size)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void xfree(void* in)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-char * xstrdup(const char * s)\r
-{\r
- char * mem = strdup(s);\r
- if (mem == NULL)\r
- {\r
- perror("strdup");\r
- exit(1);\r
- }\r
- return mem;\r
-}\r
-/*****************************************************************************/\r
-void warning(char* format, ...)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void unimpl(char* format, ...)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-void error(char* format, ...)\r
-{\r
-}\r
-\r
-/*****************************************************************************/\r
-BOOL rd_pstcache_mkdir(void)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-int rd_open_file(char *filename)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-void rd_close_file(int fd)\r
-{\r
- return;\r
-}\r
-\r
-/*****************************************************************************/\r
-int rd_read_file(int fd, void *ptr, int len)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-int rd_write_file(int fd, void* ptr, int len)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-int rd_lseek_file(int fd, int offset)\r
-{\r
- return 0;\r
-}\r
-\r
-/*****************************************************************************/\r
-BOOL rd_lock_file(int fd, int start, int len)\r
-{\r
- return False;\r
-}\r
-\r
-/*****************************************************************************/\r
-int main(int c, char** p)\r
-{\r
- return 0;\r
-}\r
+/* -*- c-basic-offset: 8 -*-
+ rdesktop: A Remote Desktop Protocol client.
+ User interface services - Generic
+ Copyright (C) Jay Sorg 2004-2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "../rdesktop.h"
+
+extern int g_tcp_port_rdp;
+int g_use_rdp5 = 0;
+char g_hostname[16];
+char g_username[64];
+int g_height = 600;
+int g_width = 800;
+int g_server_depth = 8;
+int g_encryption = 1;
+int g_desktop_save = 1;
+int g_polygon_ellipse_orders = 0;
+int g_bitmap_cache = 1;
+int g_bitmap_cache_persist_enable = False;
+int g_bitmap_cache_precache = True;
+int g_bitmap_compression = 1;
+int g_rdp5_performanceflags = 0;
+int g_console_session = 0;
+int g_keylayout = 0x409; /* Defaults to US keyboard layout */
+int g_keyboard_type = 0x4; /* Defaults to US keyboard layout */
+int g_keyboard_subtype = 0x0; /* Defaults to US keyboard layout */
+int g_keyboard_functionkeys = 0xc; /* Defaults to US keyboard layout */
+/* Session Directory redirection */
+BOOL g_redirect = False;
+char g_redirect_server[64];
+char g_redirect_domain[16];
+char g_redirect_password[64];
+char g_redirect_username[64];
+char g_redirect_cookie[128];
+uint32 g_redirect_flags = 0;
+
+/*****************************************************************************/
+void ui_bell(void)
+{
+}
+
+/*****************************************************************************/
+int ui_select(int in)
+{
+ return 1;
+}
+
+/*****************************************************************************/
+void ui_destroy_cursor(void* cursor)
+{
+}
+
+/*****************************************************************************/
+void* ui_create_glyph(int width, int height, uint8* data)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void ui_destroy_glyph(void* glyph)
+{
+}
+
+/*****************************************************************************/
+void ui_destroy_bitmap(void* bmp)
+{
+}
+
+/*****************************************************************************/
+void ui_reset_clip(void)
+{
+}
+
+/*****************************************************************************/
+void ui_set_clip(int x, int y, int cx, int cy)
+{
+}
+
+/*****************************************************************************/
+void* ui_create_colourmap(COLOURMAP * colours)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void ui_set_colourmap(void* map)
+{
+}
+
+/*****************************************************************************/
+HBITMAP ui_create_bitmap(int width, int height, uint8* data)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+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)
+{
+}
+
+/*****************************************************************************/
+void ui_line(uint8 opcode, int startx, int starty, int endx, int endy,
+ PEN * pen)
+{
+}
+
+/*****************************************************************************/
+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)
+{
+}
+
+/*****************************************************************************/
+void ui_memblt(uint8 opcode, int x, int y, int cx, int cy,
+ HBITMAP src, int srcx, int srcy)
+{
+}
+
+/*****************************************************************************/
+void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
+{
+}
+
+/*****************************************************************************/
+void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)
+{
+}
+
+/*****************************************************************************/
+void ui_rect(int x, int y, int cx, int cy, int colour)
+{
+}
+
+/*****************************************************************************/
+void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy,
+ int srcx, int srcy)
+{
+}
+
+/*****************************************************************************/
+void ui_patblt(uint8 opcode, int x, int y, int cx, int cy,
+ BRUSH * brush, int bgcolour, int fgcolour)
+{
+}
+
+/*****************************************************************************/
+void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)
+{
+}
+
+/*****************************************************************************/
+void ui_move_pointer(int x, int y)
+{
+}
+
+/*****************************************************************************/
+void ui_set_null_cursor(void)
+{
+}
+
+/*****************************************************************************/
+void ui_paint_bitmap(int x, int y, int cx, int cy,
+ int width, int height, uint8* data)
+{
+}
+
+/*****************************************************************************/
+void ui_set_cursor(HCURSOR cursor)
+{
+}
+
+/*****************************************************************************/
+HCURSOR ui_create_cursor(unsigned int x, unsigned int y,
+ int width, int height,
+ uint8* andmask, uint8* xormask)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+uint16 ui_get_numlock_state(unsigned int state)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+unsigned int read_keyboard_state(void)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void ui_resize_window(void)
+{
+}
+
+/*****************************************************************************/
+void ui_begin_update(void)
+{
+}
+
+/*****************************************************************************/
+void ui_end_update(void)
+{
+}
+
+/*****************************************************************************/
+void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints,
+ BRUSH * brush, int bgcolour, int fgcolour)
+{
+}
+
+/*****************************************************************************/
+/* todo, use qt function for this (QPainter::drawPolyline) */
+void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen)
+{
+ int i, x, y, dx, dy;
+ if (npoints > 0)
+ {
+ x = points[0].x;
+ y = points[0].y;
+ for (i = 1; i < npoints; i++)
+ {
+ dx = points[i].x;
+ dy = points[i].y;
+ ui_line(opcode, x, y, x + dx, y + dy, pen);
+ x = x + dx;
+ y = y + dy;
+ }
+ }
+}
+
+/*****************************************************************************/
+void ui_ellipse(uint8 opcode, uint8 fillmode,
+ int x, int y, int cx, int cy,
+ BRUSH * brush, int bgcolour, int fgcolour)
+{
+}
+
+/*****************************************************************************/
+void generate_random(uint8* random)
+{
+}
+
+/*****************************************************************************/
+void save_licence(uint8* data, int length)
+{
+}
+
+/*****************************************************************************/
+int load_licence(uint8** data)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void* xrealloc(void* in, int size)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void* xmalloc(int size)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void xfree(void* in)
+{
+}
+
+/*****************************************************************************/
+char * xstrdup(const char * s)
+{
+ char * mem = strdup(s);
+ if (mem == NULL)
+ {
+ perror("strdup");
+ exit(1);
+ }
+ return mem;
+}
+/*****************************************************************************/
+void warning(char* format, ...)
+{
+}
+
+/*****************************************************************************/
+void unimpl(char* format, ...)
+{
+}
+
+/*****************************************************************************/
+void error(char* format, ...)
+{
+}
+
+/*****************************************************************************/
+BOOL rd_pstcache_mkdir(void)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+int rd_open_file(char *filename)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+void rd_close_file(int fd)
+{
+ return;
+}
+
+/*****************************************************************************/
+int rd_read_file(int fd, void *ptr, int len)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+int rd_write_file(int fd, void* ptr, int len)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+int rd_lseek_file(int fd, int offset)
+{
+ return 0;
+}
+
+/*****************************************************************************/
+BOOL rd_lock_file(int fd, int start, int len)
+{
+ return False;
+}
+
+/*****************************************************************************/
+int main(int c, char** p)
+{
+ return 0;
+}