1 |
|
/* -*- c-basic-offset: 8 -*- |
2 |
|
rdesktop: A Remote Desktop Protocol client. |
3 |
|
Copyright (C) Matthew Chapman 1999-2005 |
4 |
|
|
5 |
|
This program is free software; you can redistribute it and/or modify |
6 |
|
it under the terms of the GNU General Public License as published by |
7 |
|
the Free Software Foundation; either version 2 of the License, or |
8 |
|
(at your option) any later version. |
9 |
|
|
10 |
|
This program is distributed in the hope that it will be useful, |
11 |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
|
GNU General Public License for more details. |
14 |
|
|
15 |
|
You should have received a copy of the GNU General Public License |
16 |
|
along with this program; if not, write to the Free Software |
17 |
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 |
|
*/ |
19 |
|
|
20 |
|
#ifndef RDESKTOP_PROTO_H |
21 |
|
#define RDESKTOP_PROTO_H |
22 |
|
|
23 |
|
/* *INDENT-OFF* */ |
24 |
|
#ifdef __cplusplus |
25 |
|
extern "C" { |
26 |
|
#endif |
27 |
|
/* *INDENT-ON* */ |
28 |
/* bitmap.c */ |
/* bitmap.c */ |
29 |
BOOL bitmap_decompress(uint8 * output, int width, int height, uint8 * input, int size, int Bpp); |
BOOL bitmap_decompress(uint8 * output, int width, int height, uint8 * input, int size, int Bpp); |
30 |
/* cache.c */ |
/* cache.c */ |
50 |
void channel_send(STREAM s, VCHANNEL * channel); |
void channel_send(STREAM s, VCHANNEL * channel); |
51 |
void channel_process(STREAM s, uint16 mcs_channel); |
void channel_process(STREAM s, uint16 mcs_channel); |
52 |
/* cliprdr.c */ |
/* cliprdr.c */ |
53 |
void cliprdr_send_text_format_announce(void); |
void cliprdr_send_simple_native_format_announce(uint32 format); |
54 |
void cliprdr_send_blah_format_announce(void); |
void cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length); |
|
void cliprdr_send_native_format_announce(uint8 * data, uint32 length); |
|
55 |
void cliprdr_send_data_request(uint32 format); |
void cliprdr_send_data_request(uint32 format); |
56 |
void cliprdr_send_data(uint8 * data, uint32 length); |
void cliprdr_send_data(uint8 * data, uint32 length); |
57 |
|
void cliprdr_set_mode(const char *optarg); |
58 |
BOOL cliprdr_init(void); |
BOOL cliprdr_init(void); |
59 |
/* disk.c */ |
/* disk.c */ |
60 |
int disk_enum_devices(uint32 * id, char *optarg); |
int disk_enum_devices(uint32 * id, char *optarg); |
68 |
int mppc_expand(uint8 * data, uint32 clen, uint8 ctype, uint32 * roff, uint32 * rlen); |
int mppc_expand(uint8 * data, uint32 clen, uint8 ctype, uint32 * roff, uint32 * rlen); |
69 |
/* ewmhints.c */ |
/* ewmhints.c */ |
70 |
int get_current_workarea(uint32 * x, uint32 * y, uint32 * width, uint32 * height); |
int get_current_workarea(uint32 * x, uint32 * y, uint32 * width, uint32 * height); |
71 |
|
void ewmh_init(void); |
72 |
/* iso.c */ |
/* iso.c */ |
73 |
STREAM iso_init(int length); |
STREAM iso_init(int length); |
74 |
void iso_send(STREAM s); |
void iso_send(STREAM s); |
101 |
/* pstcache.c */ |
/* pstcache.c */ |
102 |
void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp); |
void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp); |
103 |
BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx); |
BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx); |
104 |
BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint16 width, |
BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint8 width, uint8 height, |
105 |
uint16 height, uint16 length, uint8 * data); |
uint16 length, uint8 * data); |
106 |
int pstcache_enumerate(uint8 id, HASH_KEY * keylist); |
int pstcache_enumerate(uint8 id, HASH_KEY * keylist); |
107 |
BOOL pstcache_init(uint8 cache_id); |
BOOL pstcache_init(uint8 cache_id); |
108 |
/* rdesktop.c */ |
/* rdesktop.c */ |
118 |
void hexdump(unsigned char *p, unsigned int len); |
void hexdump(unsigned char *p, unsigned int len); |
119 |
char *next_arg(char *src, char needle); |
char *next_arg(char *src, char needle); |
120 |
void toupper_str(char *p); |
void toupper_str(char *p); |
121 |
|
BOOL str_startswith(const char *s, const char *prefix); |
122 |
|
BOOL str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler, void *data); |
123 |
|
BOOL subprocess(char *const argv[], str_handle_lines_t linehandler, void *data); |
124 |
char *l_to_a(long N, int base); |
char *l_to_a(long N, int base); |
125 |
int load_licence(unsigned char **data); |
int load_licence(unsigned char **data); |
126 |
void save_licence(unsigned char *data, int length); |
void save_licence(unsigned char *data, int length); |
204 |
/* xclip.c */ |
/* xclip.c */ |
205 |
void ui_clip_format_announce(uint8 * data, uint32 length); |
void ui_clip_format_announce(uint8 * data, uint32 length); |
206 |
void ui_clip_handle_data(uint8 * data, uint32 length); |
void ui_clip_handle_data(uint8 * data, uint32 length); |
207 |
|
void ui_clip_request_failed(void); |
208 |
void ui_clip_request_data(uint32 format); |
void ui_clip_request_data(uint32 format); |
209 |
void ui_clip_sync(void); |
void ui_clip_sync(void); |
210 |
|
void ui_clip_set_mode(const char *optarg); |
211 |
void xclip_init(void); |
void xclip_init(void); |
212 |
|
void xclip_deinit(void); |
213 |
/* xkeymap.c */ |
/* xkeymap.c */ |
214 |
BOOL xkeymap_from_locale(const char *locale); |
BOOL xkeymap_from_locale(const char *locale); |
215 |
FILE *xkeymap_open(const char *filename); |
FILE *xkeymap_open(const char *filename); |
276 |
void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy); |
void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy); |
277 |
void ui_begin_update(void); |
void ui_begin_update(void); |
278 |
void ui_end_update(void); |
void ui_end_update(void); |
279 |
|
void ui_seamless_begin(BOOL hidden); |
280 |
|
void ui_seamless_hide_desktop(void); |
281 |
|
void ui_seamless_unhide_desktop(void); |
282 |
|
void ui_seamless_toggle(void); |
283 |
|
void ui_seamless_create_window(unsigned long id, unsigned long group, unsigned long parent, |
284 |
|
unsigned long flags); |
285 |
|
void ui_seamless_destroy_window(unsigned long id, unsigned long flags); |
286 |
|
void ui_seamless_destroy_group(unsigned long id, unsigned long flags); |
287 |
|
void ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, |
288 |
|
unsigned long flags); |
289 |
|
void ui_seamless_restack_window(unsigned long id, unsigned long behind, unsigned long flags); |
290 |
|
void ui_seamless_settitle(unsigned long id, const char *title, unsigned long flags); |
291 |
|
void ui_seamless_setstate(unsigned long id, unsigned int state, unsigned long flags); |
292 |
|
void ui_seamless_syncbegin(unsigned long flags); |
293 |
|
void ui_seamless_ack(unsigned int serial); |
294 |
|
/* lspci.c */ |
295 |
|
BOOL lspci_init(void); |
296 |
|
/* seamless.c */ |
297 |
|
BOOL seamless_init(void); |
298 |
|
unsigned int seamless_send_sync(void); |
299 |
|
unsigned int seamless_send_state(unsigned long id, unsigned int state, unsigned long flags); |
300 |
|
unsigned int seamless_send_position(unsigned long id, int x, int y, int width, int height, |
301 |
|
unsigned long flags); |
302 |
|
void seamless_select_timeout(struct timeval *tv); |
303 |
|
unsigned int seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags); |
304 |
|
unsigned int seamless_send_focus(unsigned long id, unsigned long flags); |
305 |
|
|
306 |
|
/* *INDENT-OFF* */ |
307 |
|
#ifdef __cplusplus |
308 |
|
} |
309 |
|
#endif |
310 |
|
/* *INDENT-ON* */ |
311 |
|
|
312 |
|
#endif |