--- sourceforge.net/trunk/rdesktop/proto.h 2005/11/07 13:15:19 1025 +++ sourceforge.net/trunk/rdesktop/proto.h 2007/01/02 16:30:06 1359 @@ -50,10 +50,11 @@ void channel_send(STREAM s, VCHANNEL * channel); void channel_process(STREAM s, uint16 mcs_channel); /* cliprdr.c */ -void cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length); void cliprdr_send_simple_native_format_announce(uint32 format); +void cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length); void cliprdr_send_data_request(uint32 format); void cliprdr_send_data(uint8 * data, uint32 length); +void cliprdr_set_mode(const char *optarg); BOOL cliprdr_init(void); /* disk.c */ int disk_enum_devices(uint32 * id, char *optarg); @@ -67,6 +68,7 @@ int mppc_expand(uint8 * data, uint32 clen, uint8 ctype, uint32 * roff, uint32 * rlen); /* ewmhints.c */ int get_current_workarea(uint32 * x, uint32 * y, uint32 * width, uint32 * height); +void ewmh_init(void); /* iso.c */ STREAM iso_init(int length); void iso_send(STREAM s); @@ -99,14 +101,15 @@ /* pstcache.c */ void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp); BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx); -BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint16 width, - uint16 height, uint16 length, uint8 * data); +BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint8 width, uint8 height, + uint16 length, uint8 * data); int pstcache_enumerate(uint8 id, HASH_KEY * keylist); BOOL pstcache_init(uint8 cache_id); /* rdesktop.c */ int main(int argc, char *argv[]); void generate_random(uint8 * random); void *xmalloc(int size); +void exit_if_null(void *ptr); char *xstrdup(const char *s); void *xrealloc(void *oldmem, int size); void xfree(void *mem); @@ -117,6 +120,8 @@ char *next_arg(char *src, char needle); void toupper_str(char *p); BOOL str_startswith(const char *s, const char *prefix); +BOOL str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler, void *data); +BOOL subprocess(char *const argv[], str_handle_lines_t linehandler, void *data); char *l_to_a(long N, int base); int load_licence(unsigned char **data); void save_licence(unsigned char *data, int length); @@ -152,6 +157,8 @@ /* rdpdr.c */ int get_device_index(NTHANDLE handle); void convert_to_unix_filename(char *filename); +void rdpdr_send_completion(uint32 device, uint32 id, uint32 status, uint32 result, uint8 * buffer, + uint32 length); BOOL rdpdr_init(void); void rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, BOOL * timeout); struct async_iorequest *rdpdr_remove_iorequest(struct async_iorequest *prev, @@ -159,16 +166,15 @@ void rdpdr_check_fds(fd_set * rfds, fd_set * wfds, BOOL timed_out); BOOL rdpdr_abort_io(uint32 fd, uint32 major, NTSTATUS status); /* rdpsnd.c */ -void rdpsnd_send_completion(uint16 tick, uint8 packet_index); -BOOL rdpsnd_init(void); -/* rdpsnd_oss.c */ -BOOL wave_out_open(void); -void wave_out_close(void); -BOOL wave_out_format_supported(WAVEFORMATEX * pwfx); -BOOL wave_out_set_format(WAVEFORMATEX * pwfx); -void wave_out_volume(uint16 left, uint16 right); -void wave_out_write(STREAM s, uint16 tick, uint8 index); -void wave_out_play(void); +void rdpsnd_record(const void *data, unsigned int size); +BOOL rdpsnd_init(char *optarg); +void rdpsnd_show_help(void); +void rdpsnd_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv); +void rdpsnd_check_fds(fd_set * rfds, fd_set * wfds); +struct audio_packet *rdpsnd_queue_current_packet(void); +BOOL rdpsnd_queue_empty(void); +void rdpsnd_queue_next(unsigned long completed_in_us); +int rdpsnd_queue_next_tick(void); /* secure.c */ void sec_hash_48(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2, uint8 salt); void sec_hash_16(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2); @@ -200,9 +206,12 @@ /* xclip.c */ void ui_clip_format_announce(uint8 * data, uint32 length); void ui_clip_handle_data(uint8 * data, uint32 length); +void ui_clip_request_failed(void); void ui_clip_request_data(uint32 format); void ui_clip_sync(void); +void ui_clip_set_mode(const char *optarg); void xclip_init(void); +void xclip_deinit(void); /* xkeymap.c */ BOOL xkeymap_from_locale(const char *locale); FILE *xkeymap_open(const char *filename); @@ -269,6 +278,40 @@ void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy); void ui_begin_update(void); void ui_end_update(void); +void ui_seamless_begin(BOOL hidden); +void ui_seamless_hide_desktop(void); +void ui_seamless_unhide_desktop(void); +void ui_seamless_toggle(void); +void ui_seamless_create_window(unsigned long id, unsigned long group, unsigned long parent, + unsigned long flags); +void ui_seamless_destroy_window(unsigned long id, unsigned long flags); +void ui_seamless_destroy_group(unsigned long id, unsigned long flags); +void ui_seamless_move_window(unsigned long id, int x, int y, int width, int height, + unsigned long flags); +void ui_seamless_restack_window(unsigned long id, unsigned long behind, unsigned long flags); +void ui_seamless_settitle(unsigned long id, const char *title, unsigned long flags); +void ui_seamless_setstate(unsigned long id, unsigned int state, unsigned long flags); +void ui_seamless_syncbegin(unsigned long flags); +void ui_seamless_ack(unsigned int serial); +/* lspci.c */ +BOOL lspci_init(void); +/* seamless.c */ +BOOL seamless_init(void); +unsigned int seamless_send_sync(void); +unsigned int seamless_send_state(unsigned long id, unsigned int state, unsigned long flags); +unsigned int seamless_send_position(unsigned long id, int x, int y, int width, int height, + unsigned long flags); +void seamless_select_timeout(struct timeval *tv); +unsigned int seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags); +unsigned int seamless_send_focus(unsigned long id, unsigned long flags); +/* scard.c */ +void scardSetInfo(uint32 device, uint32 id, uint32 bytes_out); +int scard_enum_devices(uint32 * id, char *optarg); +void scard_lock(int lock); +void scard_unlock(int lock); +STREAM scard_tcp_init(void); +void scard_tcp_connect(void); +void scard_tcp_reset_state(void); /* *INDENT-OFF* */ #ifdef __cplusplus