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

Diff of /jpeg/rdesktop/trunk/proto.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1365 by jsorg71, Thu Jan 4 05:39:39 2007 UTC revision 1372 by jsorg71, Mon Jan 8 04:47:06 2007 UTC
# Line 26  extern "C" { Line 26  extern "C" {
26  #endif  #endif
27  /* *INDENT-ON* */  /* *INDENT-ON* */
28  /* bitmap.c */  /* bitmap.c */
29  BOOL bitmap_decompress(uint8 * output, int width, int height, uint8 * input, int size, int Bpp);  RD_BOOL bitmap_decompress(uint8 * output, int width, int height, uint8 * input, int size, int Bpp);
30  /* cache.c */  /* cache.c */
31  void cache_rebuild_bmpcache_linked_list(uint8 id, sint16 * idx, int count);  void cache_rebuild_bmpcache_linked_list(uint8 id, sint16 * idx, int count);
32  void cache_bump_bitmap(uint8 id, uint16 idx, int bump);  void cache_bump_bitmap(uint8 id, uint16 idx, int bump);
# Line 55  void cliprdr_send_native_format_announce Line 55  void cliprdr_send_native_format_announce
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);  void cliprdr_set_mode(const char *optarg);
58  BOOL cliprdr_init(void);  RD_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);
61  RD_NTSTATUS disk_query_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);  RD_NTSTATUS disk_query_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);
# Line 73  void ewmh_init(void); Line 73  void ewmh_init(void);
73  STREAM iso_init(int length);  STREAM iso_init(int length);
74  void iso_send(STREAM s);  void iso_send(STREAM s);
75  STREAM iso_recv(uint8 * rdpver);  STREAM iso_recv(uint8 * rdpver);
76  BOOL iso_connect(char *server, char *username);  RD_BOOL iso_connect(char *server, char *username);
77  BOOL iso_reconnect(char *server);  RD_BOOL iso_reconnect(char *server);
78  void iso_disconnect(void);  void iso_disconnect(void);
79  void iso_reset_state(void);  void iso_reset_state(void);
80  /* licence.c */  /* licence.c */
# Line 84  STREAM mcs_init(int length); Line 84  STREAM mcs_init(int length);
84  void mcs_send_to_channel(STREAM s, uint16 channel);  void mcs_send_to_channel(STREAM s, uint16 channel);
85  void mcs_send(STREAM s);  void mcs_send(STREAM s);
86  STREAM mcs_recv(uint16 * channel, uint8 * rdpver);  STREAM mcs_recv(uint16 * channel, uint8 * rdpver);
87  BOOL mcs_connect(char *server, STREAM mcs_data, char *username);  RD_BOOL mcs_connect(char *server, STREAM mcs_data, char *username);
88  BOOL mcs_reconnect(char *server, STREAM mcs_data);  RD_BOOL mcs_reconnect(char *server, STREAM mcs_data);
89  void mcs_disconnect(void);  void mcs_disconnect(void);
90  void mcs_reset_state(void);  void mcs_reset_state(void);
91  /* orders.c */  /* orders.c */
# Line 100  int printercache_load_blob(char *printer Line 100  int printercache_load_blob(char *printer
100  void printercache_process(STREAM s);  void printercache_process(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);  RD_BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx);
104  BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint8 width, uint8 height,  RD_BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint8 width, uint8 height,
105                            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);  RD_BOOL pstcache_init(uint8 cache_id);
108  /* rdesktop.c */  /* rdesktop.c */
109  int main(int argc, char *argv[]);  int main(int argc, char *argv[]);
110  void generate_random(uint8 * random);  void generate_random(uint8 * random);
# Line 119  void unimpl(char *format, ...); Line 119  void unimpl(char *format, ...);
119  void hexdump(unsigned char *p, unsigned int len);  void hexdump(unsigned char *p, unsigned int len);
120  char *next_arg(char *src, char needle);  char *next_arg(char *src, char needle);
121  void toupper_str(char *p);  void toupper_str(char *p);
122  BOOL str_startswith(const char *s, const char *prefix);  RD_BOOL str_startswith(const char *s, const char *prefix);
123  BOOL str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler, void *data);  RD_BOOL str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler, void *data);
124  BOOL subprocess(char *const argv[], str_handle_lines_t linehandler, void *data);  RD_BOOL subprocess(char *const argv[], str_handle_lines_t linehandler, void *data);
125  char *l_to_a(long N, int base);  char *l_to_a(long N, int base);
126  int load_licence(unsigned char **data);  int load_licence(unsigned char **data);
127  void save_licence(unsigned char *data, int length);  void save_licence(unsigned char *data, int length);
128  BOOL rd_pstcache_mkdir(void);  RD_BOOL rd_pstcache_mkdir(void);
129  int rd_open_file(char *filename);  int rd_open_file(char *filename);
130  void rd_close_file(int fd);  void rd_close_file(int fd);
131  int rd_read_file(int fd, void *ptr, int len);  int rd_read_file(int fd, void *ptr, int len);
132  int rd_write_file(int fd, void *ptr, int len);  int rd_write_file(int fd, void *ptr, int len);
133  int rd_lseek_file(int fd, int offset);  int rd_lseek_file(int fd, int offset);
134  BOOL rd_lock_file(int fd, int start, int len);  RD_BOOL rd_lock_file(int fd, int start, int len);
135  /* rdp5.c */  /* rdp5.c */
136  void rdp5_process(STREAM s);  void rdp5_process(STREAM s);
137  /* rdp.c */  /* rdp.c */
# Line 146  void process_system_pointer_pdu(STREAM s Line 146  void process_system_pointer_pdu(STREAM s
146  void process_bitmap_updates(STREAM s);  void process_bitmap_updates(STREAM s);
147  void process_palette(STREAM s);  void process_palette(STREAM s);
148  void process_disconnect_pdu(STREAM s, uint32 * ext_disc_reason);  void process_disconnect_pdu(STREAM s, uint32 * ext_disc_reason);
149  void rdp_main_loop(BOOL * deactivated, uint32 * ext_disc_reason);  void rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
150  BOOL rdp_loop(BOOL * deactivated, uint32 * ext_disc_reason);  RD_BOOL rdp_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
151  BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command,  RD_BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command,
152                   char *directory);                      char *directory);
153  BOOL rdp_reconnect(char *server, uint32 flags, char *domain, char *password, char *command,  RD_BOOL rdp_reconnect(char *server, uint32 flags, char *domain, char *password, char *command,
154                     char *directory, char *cookie);                        char *directory, char *cookie);
155  void rdp_reset_state(void);  void rdp_reset_state(void);
156  void rdp_disconnect(void);  void rdp_disconnect(void);
157  /* rdpdr.c */  /* rdpdr.c */
# Line 159  int get_device_index(RD_NTHANDLE handle) Line 159  int get_device_index(RD_NTHANDLE handle)
159  void convert_to_unix_filename(char *filename);  void convert_to_unix_filename(char *filename);
160  void rdpdr_send_completion(uint32 device, uint32 id, uint32 status, uint32 result, uint8 * buffer,  void rdpdr_send_completion(uint32 device, uint32 id, uint32 status, uint32 result, uint8 * buffer,
161                             uint32 length);                             uint32 length);
162  BOOL rdpdr_init(void);  RD_BOOL rdpdr_init(void);
163  void rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, BOOL * timeout);  void rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, RD_BOOL * timeout);
164  struct async_iorequest *rdpdr_remove_iorequest(struct async_iorequest *prev,  struct async_iorequest *rdpdr_remove_iorequest(struct async_iorequest *prev,
165                                                 struct async_iorequest *iorq);                                                 struct async_iorequest *iorq);
166  void rdpdr_check_fds(fd_set * rfds, fd_set * wfds, BOOL timed_out);  void rdpdr_check_fds(fd_set * rfds, fd_set * wfds, RD_BOOL timed_out);
167  BOOL rdpdr_abort_io(uint32 fd, uint32 major, RD_NTSTATUS status);  RD_BOOL rdpdr_abort_io(uint32 fd, uint32 major, RD_NTSTATUS status);
168  /* rdpsnd.c */  /* rdpsnd.c */
169  void rdpsnd_record(const void *data, unsigned int size);  void rdpsnd_record(const void *data, unsigned int size);
170  BOOL rdpsnd_init(char *optarg);  RD_BOOL rdpsnd_init(char *optarg);
171  void rdpsnd_show_help(void);  void rdpsnd_show_help(void);
172  void rdpsnd_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv);  void rdpsnd_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv);
173  void rdpsnd_check_fds(fd_set * rfds, fd_set * wfds);  void rdpsnd_check_fds(fd_set * rfds, fd_set * wfds);
174  struct audio_packet *rdpsnd_queue_current_packet(void);  struct audio_packet *rdpsnd_queue_current_packet(void);
175  BOOL rdpsnd_queue_empty(void);  RD_BOOL rdpsnd_queue_empty(void);
176  void rdpsnd_queue_next(unsigned long completed_in_us);  void rdpsnd_queue_next(unsigned long completed_in_us);
177  int rdpsnd_queue_next_tick(void);  int rdpsnd_queue_next_tick(void);
178  /* secure.c */  /* secure.c */
# Line 187  void sec_send_to_channel(STREAM s, uint3 Line 187  void sec_send_to_channel(STREAM s, uint3
187  void sec_send(STREAM s, uint32 flags);  void sec_send(STREAM s, uint32 flags);
188  void sec_process_mcs_data(STREAM s);  void sec_process_mcs_data(STREAM s);
189  STREAM sec_recv(uint8 * rdpver);  STREAM sec_recv(uint8 * rdpver);
190  BOOL sec_connect(char *server, char *username);  RD_BOOL sec_connect(char *server, char *username);
191  BOOL sec_reconnect(char *server);  RD_BOOL sec_reconnect(char *server);
192  void sec_disconnect(void);  void sec_disconnect(void);
193  void sec_reset_state(void);  void sec_reset_state(void);
194  /* serial.c */  /* serial.c */
195  int serial_enum_devices(uint32 * id, char *optarg);  int serial_enum_devices(uint32 * id, char *optarg);
196  BOOL serial_get_event(RD_NTHANDLE handle, uint32 * result);  RD_BOOL serial_get_event(RD_NTHANDLE handle, uint32 * result);
197  BOOL serial_get_timeout(RD_NTHANDLE handle, uint32 length, uint32 * timeout, uint32 * itv_timeout);  RD_BOOL serial_get_timeout(RD_NTHANDLE handle, uint32 length, uint32 * timeout, uint32 * itv_timeout);
198  /* tcp.c */  /* tcp.c */
199  STREAM tcp_init(uint32 maxlen);  STREAM tcp_init(uint32 maxlen);
200  void tcp_send(STREAM s);  void tcp_send(STREAM s);
201  STREAM tcp_recv(STREAM s, uint32 length);  STREAM tcp_recv(STREAM s, uint32 length);
202  BOOL tcp_connect(char *server);  RD_BOOL tcp_connect(char *server);
203  void tcp_disconnect(void);  void tcp_disconnect(void);
204  char *tcp_get_address(void);  char *tcp_get_address(void);
205  void tcp_reset_state(void);  void tcp_reset_state(void);
# Line 213  void ui_clip_set_mode(const char *optarg Line 213  void ui_clip_set_mode(const char *optarg
213  void xclip_init(void);  void xclip_init(void);
214  void xclip_deinit(void);  void xclip_deinit(void);
215  /* xkeymap.c */  /* xkeymap.c */
216  BOOL xkeymap_from_locale(const char *locale);  RD_BOOL xkeymap_from_locale(const char *locale);
217  FILE *xkeymap_open(const char *filename);  FILE *xkeymap_open(const char *filename);
218  void xkeymap_init(void);  void xkeymap_init(void);
219  BOOL handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pressed);  RD_BOOL handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, RD_BOOL pressed);
220  key_translation xkeymap_translate_key(uint32 keysym, unsigned int keycode, unsigned int state);  key_translation xkeymap_translate_key(uint32 keysym, unsigned int keycode, unsigned int state);
221  void xkeymap_send_keys(uint32 keysym, unsigned int keycode, unsigned int state, uint32 ev_time,  void xkeymap_send_keys(uint32 keysym, unsigned int keycode, unsigned int state, uint32 ev_time,
222                         BOOL pressed, uint8 nesting);                         RD_BOOL pressed, uint8 nesting);
223  uint16 xkeymap_translate_button(unsigned int button);  uint16 xkeymap_translate_button(unsigned int button);
224  char *get_ksname(uint32 keysym);  char *get_ksname(uint32 keysym);
225  void save_remote_modifiers(uint8 scancode);  void save_remote_modifiers(uint8 scancode);
# Line 230  uint16 ui_get_numlock_state(unsigned int Line 230  uint16 ui_get_numlock_state(unsigned int
230  void reset_modifier_keys(void);  void reset_modifier_keys(void);
231  void rdp_send_scancode(uint32 time, uint16 flags, uint8 scancode);  void rdp_send_scancode(uint32 time, uint16 flags, uint8 scancode);
232  /* xwin.c */  /* xwin.c */
233  BOOL get_key_state(unsigned int state, uint32 keysym);  RD_BOOL get_key_state(unsigned int state, uint32 keysym);
234  BOOL ui_init(void);  RD_BOOL ui_init(void);
235  void ui_deinit(void);  void ui_deinit(void);
236  BOOL ui_create_window(void);  RD_BOOL ui_create_window(void);
237  void ui_resize_window(void);  void ui_resize_window(void);
238  void ui_destroy_window(void);  void ui_destroy_window(void);
239  void xwin_toggle_fullscreen(void);  void xwin_toggle_fullscreen(void);
# Line 278  void ui_desktop_save(uint32 offset, int Line 278  void ui_desktop_save(uint32 offset, int
278  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);
279  void ui_begin_update(void);  void ui_begin_update(void);
280  void ui_end_update(void);  void ui_end_update(void);
281  void ui_seamless_begin(BOOL hidden);  void ui_seamless_begin(RD_BOOL hidden);
282  void ui_seamless_hide_desktop(void);  void ui_seamless_hide_desktop(void);
283  void ui_seamless_unhide_desktop(void);  void ui_seamless_unhide_desktop(void);
284  void ui_seamless_toggle(void);  void ui_seamless_toggle(void);
# Line 294  void ui_seamless_setstate(unsigned long Line 294  void ui_seamless_setstate(unsigned long
294  void ui_seamless_syncbegin(unsigned long flags);  void ui_seamless_syncbegin(unsigned long flags);
295  void ui_seamless_ack(unsigned int serial);  void ui_seamless_ack(unsigned int serial);
296  /* lspci.c */  /* lspci.c */
297  BOOL lspci_init(void);  RD_BOOL lspci_init(void);
298  /* seamless.c */  /* seamless.c */
299  BOOL seamless_init(void);  RD_BOOL seamless_init(void);
300  unsigned int seamless_send_sync(void);  unsigned int seamless_send_sync(void);
301  unsigned int seamless_send_state(unsigned long id, unsigned int state, unsigned long flags);  unsigned int seamless_send_state(unsigned long id, unsigned int state, unsigned long flags);
302  unsigned int seamless_send_position(unsigned long id, int x, int y, int width, int height,  unsigned int seamless_send_position(unsigned long id, int x, int y, int width, int height,

Legend:
Removed from v.1365  
changed lines
  Added in v.1372

  ViewVC Help
Powered by ViewVC 1.1.26