1 |
/* rdesktop.c */ |
/* bitmap.c */ |
2 |
int main(int argc, char *argv[]); |
BOOL bitmap_decompress(unsigned char *output, int width, int height, unsigned char *input, int size); |
3 |
void generate_random(uint8 *random); |
/* cache.c */ |
4 |
void *xmalloc(int size); |
HBITMAP cache_get_bitmap(uint8 cache_id, uint16 cache_idx); |
5 |
void *xrealloc(void *oldmem, int size); |
void cache_put_bitmap(uint8 cache_id, uint16 cache_idx, HBITMAP bitmap); |
6 |
void xfree(void *mem); |
FONTGLYPH *cache_get_font(uint8 font, uint16 character); |
7 |
void hexdump(unsigned char *p, unsigned int len); |
void cache_put_font(uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap); |
8 |
|
DATABLOB *cache_get_text(uint8 cache_id); |
9 |
/* tcp.c */ |
void cache_put_text(uint8 cache_id, void *data, int length); |
10 |
STREAM tcp_init(int maxlen); |
uint8 *cache_get_desktop(uint32 offset, int cx, int cy, int bytes_per_pixel); |
11 |
void tcp_send(STREAM s); |
void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel, uint8 *data); |
12 |
STREAM tcp_recv(int length); |
HCURSOR cache_get_cursor(uint16 cache_idx); |
13 |
BOOL tcp_connect(char *server); |
void cache_put_cursor(uint16 cache_idx, HCURSOR cursor); |
|
void tcp_disconnect(void); |
|
|
|
|
14 |
/* iso.c */ |
/* iso.c */ |
15 |
STREAM iso_init(int length); |
STREAM iso_init(int length); |
16 |
void iso_send(STREAM s); |
void iso_send(STREAM s); |
17 |
STREAM iso_recv(void); |
STREAM iso_recv(void); |
18 |
BOOL iso_connect(char *server); |
BOOL iso_connect(char *server); |
19 |
void iso_disconnect(void); |
void iso_disconnect(void); |
20 |
|
/* licence.c */ |
21 |
|
void licence_process(STREAM s); |
22 |
/* mcs.c */ |
/* mcs.c */ |
23 |
STREAM mcs_init(int length); |
STREAM mcs_init(int length); |
24 |
void mcs_send(STREAM s); |
void mcs_send(STREAM s); |
25 |
STREAM mcs_recv(void); |
STREAM mcs_recv(void); |
26 |
BOOL mcs_connect(char *server, STREAM mcs_data); |
BOOL mcs_connect(char *server, STREAM mcs_data); |
27 |
void mcs_disconnect(void); |
void mcs_disconnect(void); |
28 |
|
/* orders.c */ |
29 |
|
void process_orders(STREAM s); |
30 |
|
void reset_order_state(void); |
31 |
|
/* rdesktop.c */ |
32 |
|
int main(int argc, char *argv[]); |
33 |
|
void generate_random(uint8 *random); |
34 |
|
void *xmalloc(int size); |
35 |
|
void *xrealloc(void *oldmem, int size); |
36 |
|
void xfree(void *mem); |
37 |
|
void error(char *format, ...); |
38 |
|
void unimpl(char *format, ...); |
39 |
|
void hexdump(unsigned char *p, unsigned int len); |
40 |
|
int load_licence(unsigned char **data); |
41 |
|
void save_licence(unsigned char *data, int length); |
42 |
|
/* rdp.c */ |
43 |
|
void rdp_out_unistr(STREAM s, char *string, int len); |
44 |
|
void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1, uint16 param2); |
45 |
|
void rdp_main_loop(void); |
46 |
|
BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command, char *directory); |
47 |
|
void rdp_disconnect(void); |
48 |
/* secure.c */ |
/* secure.c */ |
49 |
void sec_hash_48(uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2, uint8 salt); |
void sec_hash_48(uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2, uint8 salt); |
50 |
void sec_hash_16(uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2); |
void sec_hash_16(uint8 *out, uint8 *in, uint8 *salt1, uint8 *salt2); |
55 |
STREAM sec_recv(void); |
STREAM sec_recv(void); |
56 |
BOOL sec_connect(char *server); |
BOOL sec_connect(char *server); |
57 |
void sec_disconnect(void); |
void sec_disconnect(void); |
58 |
|
/* tcp.c */ |
59 |
/* licence.c */ |
STREAM tcp_init(int maxlen); |
60 |
void licence_generate_keys(uint8 *client_key, uint8 *server_key, uint8 *client_rsa); |
void tcp_send(STREAM s); |
61 |
void licence_process(STREAM s); |
STREAM tcp_recv(int length); |
62 |
|
BOOL tcp_connect(char *server); |
63 |
/* rdp.c */ |
void tcp_disconnect(void); |
64 |
void rdp_out_unistr(STREAM s, char *string, int len); |
/* xkeymap.c */ |
65 |
void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1, uint16 param2); |
void xkeymap_init(void); |
66 |
void rdp_main_loop(void); |
uint8 xkeymap_translate_key(unsigned int keysym, unsigned int keycode, uint16 *flags); |
67 |
BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command, char *directory); |
uint16 xkeymap_translate_button(unsigned int button); |
|
void rdp_disconnect(void); |
|
|
|
|
|
/* orders.c */ |
|
|
void process_orders(STREAM s); |
|
|
void reset_order_state(void); |
|
|
|
|
|
/* bitmap.c */ |
|
|
BOOL bitmap_decompress(unsigned char *output, int width, int height, unsigned char *input, int size); |
|
|
|
|
|
/* cache.c */ |
|
|
HBITMAP cache_get_bitmap(uint8 cache_id, uint16 cache_idx); |
|
|
void cache_put_bitmap(uint8 cache_id, uint16 cache_idx, HBITMAP bitmap); |
|
|
FONTGLYPH *cache_get_font(uint8 font, uint16 character); |
|
|
void cache_put_font(uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap); |
|
|
DATABLOB *cache_get_text(uint8 cache_id); |
|
|
void cache_put_text(uint8 cache_id, void *data, int length); |
|
|
uint8 *cache_get_desktop(uint32 offset, int cx, int cy); |
|
|
void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, uint8 *data); |
|
|
|
|
68 |
/* xwin.c */ |
/* xwin.c */ |
69 |
BOOL ui_create_window(char *title); |
BOOL ui_create_window(char *title); |
70 |
void ui_destroy_window(void); |
void ui_destroy_window(void); |
71 |
void ui_process_events(void); |
void ui_select(int rdp_socket); |
72 |
void ui_move_pointer(int x, int y); |
void ui_move_pointer(int x, int y); |
73 |
HBITMAP ui_create_bitmap(int width, int height, uint8 *data); |
HBITMAP ui_create_bitmap(int width, int height, uint8 *data); |
74 |
void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 *data); |
void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 *data); |
75 |
void ui_destroy_bitmap(HBITMAP bmp); |
void ui_destroy_bitmap(HBITMAP bmp); |
76 |
HGLYPH ui_create_glyph(int width, int height, uint8 *data); |
HGLYPH ui_create_glyph(int width, int height, uint8 *data); |
77 |
void ui_destroy_glyph(HGLYPH glyph); |
void ui_destroy_glyph(HGLYPH glyph); |
78 |
|
HCURSOR ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 *andmask, uint8 *xormask); |
79 |
|
void ui_set_cursor(HCURSOR cursor); |
80 |
|
void ui_destroy_cursor(HCURSOR cursor); |
81 |
HCOLOURMAP ui_create_colourmap(COLOURMAP *colours); |
HCOLOURMAP ui_create_colourmap(COLOURMAP *colours); |
82 |
void ui_destroy_colourmap(HCOLOURMAP map); |
void ui_destroy_colourmap(HCOLOURMAP map); |
83 |
void ui_set_colourmap(HCOLOURMAP map); |
void ui_set_colourmap(HCOLOURMAP map); |