2005-08-25 22:43:45 +02:00
|
|
|
/* -*- c-basic-offset: 8 -*-
|
|
|
|
rdesktop: A Remote Desktop Protocol client.
|
2008-07-11 05:51:23 +02:00
|
|
|
Copyright (C) Matthew Chapman 1999-2008
|
2005-08-25 22:43:45 +02:00
|
|
|
|
2010-01-12 09:31:06 +01:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
2005-08-25 22:43:45 +02:00
|
|
|
it under the terms of the GNU General Public License as published by
|
2010-01-12 09:31:06 +01:00
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
2005-08-25 22:43:45 +02:00
|
|
|
(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
|
2010-01-12 09:31:06 +01:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2005-08-25 22:43:45 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RDESKTOP_PROTO_H
|
|
|
|
#define RDESKTOP_PROTO_H
|
|
|
|
|
|
|
|
/* *INDENT-OFF* */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
/* *INDENT-ON* */
|
2017-10-17 09:52:42 +02:00
|
|
|
#define UNUSED(param) ((void)param)
|
2001-06-20 15:54:48 +02:00
|
|
|
/* bitmap.c */
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL bitmap_decompress(uint8 * output, int width, int height, uint8 * input, int size, int Bpp);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* cache.c */
|
2005-08-02 11:43:56 +02:00
|
|
|
void cache_rebuild_bmpcache_linked_list(uint8 id, sint16 * idx, int count);
|
|
|
|
void cache_bump_bitmap(uint8 id, uint16 idx, int bump);
|
|
|
|
void cache_evict_bitmap(uint8 id);
|
2007-01-04 05:55:56 +01:00
|
|
|
RD_HBITMAP cache_get_bitmap(uint8 id, uint16 idx);
|
|
|
|
void cache_put_bitmap(uint8 id, uint16 idx, RD_HBITMAP bitmap);
|
2004-06-27 19:51:54 +02:00
|
|
|
void cache_save_state(void);
|
2001-06-20 15:54:48 +02:00
|
|
|
FONTGLYPH *cache_get_font(uint8 font, uint16 character);
|
2003-10-15 16:01:32 +02:00
|
|
|
void cache_put_font(uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width,
|
2007-01-04 05:55:56 +01:00
|
|
|
uint16 height, RD_HGLYPH pixmap);
|
2001-06-20 15:54:48 +02:00
|
|
|
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, int bytes_per_pixel);
|
2003-10-15 16:01:32 +02:00
|
|
|
void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel,
|
|
|
|
uint8 * data);
|
2007-01-04 05:55:56 +01:00
|
|
|
RD_HCURSOR cache_get_cursor(uint16 cache_idx);
|
|
|
|
void cache_put_cursor(uint16 cache_idx, RD_HCURSOR cursor);
|
2008-11-01 03:37:10 +01:00
|
|
|
BRUSHDATA *cache_get_brush_data(uint8 colour_code, uint8 idx);
|
|
|
|
void cache_put_brush_data(uint8 colour_code, uint8 idx, BRUSHDATA * brush_data);
|
2003-06-06 12:42:21 +02:00
|
|
|
/* channels.c */
|
2003-10-15 16:01:32 +02:00
|
|
|
VCHANNEL *channel_register(char *name, uint32 flags, void (*callback) (STREAM));
|
|
|
|
STREAM channel_init(VCHANNEL * channel, uint32 length);
|
|
|
|
void channel_send(STREAM s, VCHANNEL * channel);
|
2003-07-01 11:31:25 +02:00
|
|
|
void channel_process(STREAM s, uint16 mcs_channel);
|
2003-06-06 12:42:21 +02:00
|
|
|
/* cliprdr.c */
|
2005-11-07 14:15:19 +01:00
|
|
|
void cliprdr_send_simple_native_format_announce(uint32 format);
|
2006-01-23 07:52:13 +01:00
|
|
|
void cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length);
|
2003-07-01 11:31:25 +02:00
|
|
|
void cliprdr_send_data_request(uint32 format);
|
2003-10-15 16:01:32 +02:00
|
|
|
void cliprdr_send_data(uint8 * data, uint32 length);
|
2006-03-27 11:20:24 +02:00
|
|
|
void cliprdr_set_mode(const char *optarg);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL cliprdr_init(void);
|
2013-01-21 13:28:14 +01:00
|
|
|
/* ctrl.c */
|
|
|
|
int ctrl_init(const char *user, const char *domain, const char *host);
|
|
|
|
void ctrl_cleanup();
|
|
|
|
RD_BOOL ctrl_is_slave();
|
|
|
|
int ctrl_send_command(const char *cmd, const char *args);
|
|
|
|
void ctrl_add_fds(int *n, fd_set * rfds);
|
|
|
|
void ctrl_check_fds(fd_set * rfds, fd_set * wfds);
|
|
|
|
|
2004-01-21 15:40:40 +01:00
|
|
|
/* disk.c */
|
2004-04-17 09:32:52 +02:00
|
|
|
int disk_enum_devices(uint32 * id, char *optarg);
|
2007-01-04 05:55:56 +01:00
|
|
|
RD_NTSTATUS disk_query_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);
|
|
|
|
RD_NTSTATUS disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM out);
|
|
|
|
RD_NTSTATUS disk_check_notify(RD_NTHANDLE handle);
|
|
|
|
RD_NTSTATUS disk_create_notify(RD_NTHANDLE handle, uint32 info_class);
|
|
|
|
RD_NTSTATUS disk_query_volume_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);
|
|
|
|
RD_NTSTATUS disk_query_directory(RD_NTHANDLE handle, uint32 info_class, char *pattern, STREAM out);
|
2004-04-27 14:55:33 +02:00
|
|
|
/* mppc.c */
|
|
|
|
int mppc_expand(uint8 * data, uint32 clen, uint8 ctype, uint32 * roff, uint32 * rlen);
|
2002-11-18 19:12:49 +01:00
|
|
|
/* ewmhints.c */
|
2003-10-15 16:01:32 +02:00
|
|
|
int get_current_workarea(uint32 * x, uint32 * y, uint32 * width, uint32 * height);
|
2006-03-14 14:56:50 +01:00
|
|
|
void ewmh_init(void);
|
2000-08-15 12:23:24 +02:00
|
|
|
/* iso.c */
|
|
|
|
STREAM iso_init(int length);
|
|
|
|
void iso_send(STREAM s);
|
2018-10-29 15:50:44 +01:00
|
|
|
STREAM iso_recv(RD_BOOL * is_fastpath, uint8 * fastpath_hdr);
|
2012-11-15 12:21:01 +01:00
|
|
|
RD_BOOL iso_connect(char *server, char *username, char *domain, char *password, RD_BOOL reconnect,
|
|
|
|
uint32 * selected_protocol);
|
2000-08-15 12:23:24 +02:00
|
|
|
void iso_disconnect(void);
|
2005-08-08 21:15:57 +02:00
|
|
|
void iso_reset_state(void);
|
2012-11-29 08:42:54 +01:00
|
|
|
/* cssp.c */
|
|
|
|
RD_BOOL cssp_connect(char *server, char *user, char *domain, char *password, STREAM s);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* licence.c */
|
|
|
|
void licence_process(STREAM s);
|
2000-08-15 12:23:24 +02:00
|
|
|
/* mcs.c */
|
|
|
|
STREAM mcs_init(int length);
|
2003-06-06 12:42:21 +02:00
|
|
|
void mcs_send_to_channel(STREAM s, uint16 channel);
|
2000-08-15 12:23:24 +02:00
|
|
|
void mcs_send(STREAM s);
|
2018-10-29 15:50:44 +01:00
|
|
|
STREAM mcs_recv(uint16 * channel, RD_BOOL * is_fastpath, uint8 * fastpath_hdr);
|
2012-11-15 12:21:01 +01:00
|
|
|
RD_BOOL mcs_connect_start(char *server, char *username, char *domain, char *password,
|
|
|
|
RD_BOOL reconnect, uint32 * selected_protocol);
|
2012-06-15 07:16:20 +02:00
|
|
|
RD_BOOL mcs_connect_finalize(STREAM s);
|
2018-01-22 13:04:41 +01:00
|
|
|
void mcs_disconnect(int reason);
|
2005-08-08 21:15:57 +02:00
|
|
|
void mcs_reset_state(void);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* orders.c */
|
2003-06-06 12:42:21 +02:00
|
|
|
void process_orders(STREAM s, uint16 num_orders);
|
2001-06-20 15:54:48 +02:00
|
|
|
void reset_order_state(void);
|
2004-01-21 15:40:40 +01:00
|
|
|
/* parallel.c */
|
2004-02-15 22:19:28 +01:00
|
|
|
int parallel_enum_devices(uint32 * id, char *optarg);
|
2003-09-02 11:37:39 +02:00
|
|
|
/* printer.c */
|
2004-02-15 22:19:28 +01:00
|
|
|
int printer_enum_devices(uint32 * id, char *optarg);
|
2004-01-21 15:40:40 +01:00
|
|
|
/* printercache.c */
|
|
|
|
int printercache_load_blob(char *printer_name, uint8 ** data);
|
|
|
|
void printercache_process(STREAM s);
|
2004-06-27 19:51:54 +02:00
|
|
|
/* pstcache.c */
|
2005-08-02 11:43:56 +02:00
|
|
|
void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx);
|
2007-01-11 04:30:18 +01:00
|
|
|
RD_BOOL pstcache_save_bitmap(uint8 cache_id, uint16 cache_idx, uint8 * key, uint8 width,
|
|
|
|
uint8 height, uint16 length, uint8 * data);
|
2005-03-08 01:23:02 +01:00
|
|
|
int pstcache_enumerate(uint8 id, HASH_KEY * keylist);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL pstcache_init(uint8 cache_id);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* rdesktop.c */
|
|
|
|
int main(int argc, char *argv[]);
|
2003-10-15 16:01:32 +02:00
|
|
|
void generate_random(uint8 * random);
|
2001-06-20 15:54:48 +02:00
|
|
|
void *xmalloc(int size);
|
2006-10-27 14:59:38 +02:00
|
|
|
void exit_if_null(void *ptr);
|
2005-08-04 14:50:15 +02:00
|
|
|
char *xstrdup(const char *s);
|
2008-01-05 06:43:02 +01:00
|
|
|
void *xrealloc(void *oldmem, size_t size);
|
2001-06-20 15:54:48 +02:00
|
|
|
void xfree(void *mem);
|
2004-01-21 15:40:40 +01:00
|
|
|
void hexdump(unsigned char *p, unsigned int len);
|
2004-04-17 09:32:52 +02:00
|
|
|
char *next_arg(char *src, char needle);
|
2004-01-23 09:35:52 +01:00
|
|
|
void toupper_str(char *p);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL str_startswith(const char *s, const char *prefix);
|
2007-01-11 04:30:18 +01:00
|
|
|
RD_BOOL str_handle_lines(const char *input, char **rest, str_handle_lines_t linehandler,
|
|
|
|
void *data);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL subprocess(char *const argv[], str_handle_lines_t linehandler, void *data);
|
2004-02-07 19:47:06 +01:00
|
|
|
char *l_to_a(long N, int base);
|
2003-02-11 12:31:04 +01:00
|
|
|
int load_licence(unsigned char **data);
|
|
|
|
void save_licence(unsigned char *data, int length);
|
2013-08-14 15:49:45 +02:00
|
|
|
void rd_create_ui(void);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL rd_pstcache_mkdir(void);
|
2004-06-27 19:51:54 +02:00
|
|
|
int rd_open_file(char *filename);
|
|
|
|
void rd_close_file(int fd);
|
|
|
|
int rd_read_file(int fd, void *ptr, int len);
|
2004-07-12 23:07:39 +02:00
|
|
|
int rd_write_file(int fd, void *ptr, int len);
|
2004-06-27 19:51:54 +02:00
|
|
|
int rd_lseek_file(int fd, int offset);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL rd_lock_file(int fd, int start, int len);
|
2003-11-03 14:33:35 +01:00
|
|
|
/* rdp5.c */
|
2017-10-13 13:45:07 +02:00
|
|
|
void process_ts_fp_updates(STREAM s);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* rdp.c */
|
2013-12-12 15:01:58 +01:00
|
|
|
void rdp_in_unistr(STREAM s, int in_len, char **string, uint32 * str_size);
|
2003-10-15 16:01:32 +02:00
|
|
|
void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1,
|
|
|
|
uint16 param2);
|
2017-10-27 14:58:20 +02:00
|
|
|
void rdp_send_suppress_output_pdu(enum RDP_SUPPRESS_STATUS allowupdates);
|
2003-03-27 14:33:16 +01:00
|
|
|
void process_colour_pointer_pdu(STREAM s);
|
2009-10-25 22:36:17 +01:00
|
|
|
void process_new_pointer_pdu(STREAM s);
|
2003-03-27 14:33:16 +01:00
|
|
|
void process_cached_pointer_pdu(STREAM s);
|
2003-11-03 14:33:35 +01:00
|
|
|
void process_system_pointer_pdu(STREAM s);
|
2017-10-13 13:37:37 +02:00
|
|
|
void set_system_pointer(uint32 ptr);
|
2003-06-06 12:42:21 +02:00
|
|
|
void process_bitmap_updates(STREAM s);
|
2003-03-27 14:33:16 +01:00
|
|
|
void process_palette(STREAM s);
|
2007-01-08 05:47:06 +01:00
|
|
|
void rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
|
|
|
|
RD_BOOL rdp_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
|
|
|
|
RD_BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command,
|
2010-01-07 21:01:58 +01:00
|
|
|
char *directory, RD_BOOL reconnect);
|
2005-08-08 21:15:57 +02:00
|
|
|
void rdp_reset_state(void);
|
2001-06-20 15:54:48 +02:00
|
|
|
void rdp_disconnect(void);
|
2003-07-01 11:31:25 +02:00
|
|
|
/* rdpdr.c */
|
2007-01-04 05:55:56 +01:00
|
|
|
int get_device_index(RD_NTHANDLE handle);
|
2004-04-17 09:32:52 +02:00
|
|
|
void convert_to_unix_filename(char *filename);
|
2006-11-01 21:52:01 +01:00
|
|
|
void rdpdr_send_completion(uint32 device, uint32 id, uint32 status, uint32 result, uint8 * buffer,
|
|
|
|
uint32 length);
|
2011-01-03 14:12:17 +01:00
|
|
|
RD_BOOL rdpdr_init();
|
2007-01-08 05:47:06 +01:00
|
|
|
void rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, RD_BOOL * timeout);
|
2004-04-17 09:32:52 +02:00
|
|
|
struct async_iorequest *rdpdr_remove_iorequest(struct async_iorequest *prev,
|
|
|
|
struct async_iorequest *iorq);
|
2007-01-08 05:47:06 +01:00
|
|
|
void rdpdr_check_fds(fd_set * rfds, fd_set * wfds, RD_BOOL timed_out);
|
|
|
|
RD_BOOL rdpdr_abort_io(uint32 fd, uint32 major, RD_NTSTATUS status);
|
2003-09-02 11:37:39 +02:00
|
|
|
/* rdpsnd.c */
|
2007-01-02 17:30:06 +01:00
|
|
|
void rdpsnd_record(const void *data, unsigned int size);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL rdpsnd_init(char *optarg);
|
2006-09-17 13:04:50 +02:00
|
|
|
void rdpsnd_show_help(void);
|
2006-10-26 11:47:17 +02:00
|
|
|
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);
|
2006-10-19 14:26:55 +02:00
|
|
|
struct audio_packet *rdpsnd_queue_current_packet(void);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL rdpsnd_queue_empty(void);
|
2006-10-26 11:47:17 +02:00
|
|
|
void rdpsnd_queue_next(unsigned long completed_in_us);
|
2006-10-19 14:26:55 +02:00
|
|
|
int rdpsnd_queue_next_tick(void);
|
2010-04-09 15:12:31 +02:00
|
|
|
void rdpsnd_reset_state(void);
|
2000-08-15 12:23:24 +02:00
|
|
|
/* secure.c */
|
2012-01-16 07:35:13 +01:00
|
|
|
void sec_hash_to_string(char *out, int out_size, uint8 * in, int in_size);
|
|
|
|
void sec_hash_sha1_16(uint8 * out, uint8 * in, uint8 * salt1);
|
2003-10-15 16:01:32 +02:00
|
|
|
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);
|
|
|
|
void buf_out_uint32(uint8 * buffer, uint32 value);
|
|
|
|
void sec_sign(uint8 * signature, int siglen, uint8 * session_key, int keylen, uint8 * data,
|
|
|
|
int datalen);
|
|
|
|
void sec_decrypt(uint8 * data, int length);
|
2000-08-15 12:23:24 +02:00
|
|
|
STREAM sec_init(uint32 flags, int maxlen);
|
2003-06-06 12:42:21 +02:00
|
|
|
void sec_send_to_channel(STREAM s, uint32 flags, uint16 channel);
|
2000-08-15 12:23:24 +02:00
|
|
|
void sec_send(STREAM s, uint32 flags);
|
2003-06-06 12:42:21 +02:00
|
|
|
void sec_process_mcs_data(STREAM s);
|
2018-01-26 12:17:59 +01:00
|
|
|
STREAM sec_recv(RD_BOOL * is_fastpath);
|
2012-11-15 12:21:01 +01:00
|
|
|
RD_BOOL sec_connect(char *server, char *username, char *domain, char *password, RD_BOOL reconnect);
|
2000-08-15 12:23:24 +02:00
|
|
|
void sec_disconnect(void);
|
2005-08-08 21:15:57 +02:00
|
|
|
void sec_reset_state(void);
|
2003-09-02 11:37:39 +02:00
|
|
|
/* serial.c */
|
2004-02-15 22:19:28 +01:00
|
|
|
int serial_enum_devices(uint32 * id, char *optarg);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL serial_get_event(RD_NTHANDLE handle, uint32 * result);
|
2007-01-11 04:30:18 +01:00
|
|
|
RD_BOOL serial_get_timeout(RD_NTHANDLE handle, uint32 length, uint32 * timeout,
|
|
|
|
uint32 * itv_timeout);
|
2001-06-20 15:54:48 +02:00
|
|
|
/* tcp.c */
|
2003-05-19 23:36:33 +02:00
|
|
|
STREAM tcp_init(uint32 maxlen);
|
2001-06-20 15:54:48 +02:00
|
|
|
void tcp_send(STREAM s);
|
2003-06-17 10:44:32 +02:00
|
|
|
STREAM tcp_recv(STREAM s, uint32 length);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL tcp_connect(char *server);
|
2001-06-20 15:54:48 +02:00
|
|
|
void tcp_disconnect(void);
|
2004-03-04 09:11:40 +01:00
|
|
|
char *tcp_get_address(void);
|
2012-11-22 14:38:35 +01:00
|
|
|
RD_BOOL tcp_is_connected(void);
|
2005-08-08 21:15:57 +02:00
|
|
|
void tcp_reset_state(void);
|
2012-11-15 12:21:01 +01:00
|
|
|
RD_BOOL tcp_tls_connect(void);
|
|
|
|
RD_BOOL tcp_tls_get_server_pubkey(STREAM s);
|
2013-06-20 14:51:27 +02:00
|
|
|
void tcp_run_ui(RD_BOOL run);
|
2012-11-15 12:21:01 +01:00
|
|
|
|
|
|
|
/* asn.c */
|
|
|
|
RD_BOOL ber_in_header(STREAM s, int *tagval, int *length);
|
|
|
|
void ber_out_header(STREAM s, int tagval, int length);
|
|
|
|
RD_BOOL ber_parse_header(STREAM s, int tagval, int *length);
|
|
|
|
void ber_out_integer(STREAM s, int value);
|
2018-01-17 14:38:06 +01:00
|
|
|
void ber_out_sequence(STREAM s, STREAM contents);
|
2012-11-15 12:21:01 +01:00
|
|
|
|
2003-07-01 11:31:25 +02:00
|
|
|
/* xclip.c */
|
2003-11-03 14:22:09 +01:00
|
|
|
void ui_clip_format_announce(uint8 * data, uint32 length);
|
|
|
|
void ui_clip_handle_data(uint8 * data, uint32 length);
|
2006-03-27 14:29:29 +02:00
|
|
|
void ui_clip_request_failed(void);
|
2003-07-01 11:31:25 +02:00
|
|
|
void ui_clip_request_data(uint32 format);
|
|
|
|
void ui_clip_sync(void);
|
2006-03-27 11:20:24 +02:00
|
|
|
void ui_clip_set_mode(const char *optarg);
|
2003-07-01 11:31:25 +02:00
|
|
|
void xclip_init(void);
|
2006-03-28 15:56:08 +02:00
|
|
|
void xclip_deinit(void);
|
2002-04-20 11:41:03 +02:00
|
|
|
/* xkeymap.c */
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL xkeymap_from_locale(const char *locale);
|
2005-08-03 10:25:32 +02:00
|
|
|
FILE *xkeymap_open(const char *filename);
|
2002-09-14 13:48:44 +02:00
|
|
|
void xkeymap_init(void);
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, RD_BOOL pressed);
|
2002-09-24 09:33:17 +02:00
|
|
|
key_translation xkeymap_translate_key(uint32 keysym, unsigned int keycode, unsigned int state);
|
2005-08-02 17:07:35 +02:00
|
|
|
void xkeymap_send_keys(uint32 keysym, unsigned int keycode, unsigned int state, uint32 ev_time,
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL pressed, uint8 nesting);
|
2017-08-15 10:50:08 +02:00
|
|
|
uint16 xkeymap_translate_button(unsigned int button, uint16 * input_type);
|
2002-09-24 09:33:17 +02:00
|
|
|
char *get_ksname(uint32 keysym);
|
2003-09-15 10:03:30 +02:00
|
|
|
void save_remote_modifiers(uint8 scancode);
|
|
|
|
void restore_remote_modifiers(uint32 ev_time, uint8 scancode);
|
2002-07-18 20:28:12 +02:00
|
|
|
void ensure_remote_modifiers(uint32 ev_time, key_translation tr);
|
2003-11-03 14:33:35 +01:00
|
|
|
unsigned int read_keyboard_state(void);
|
|
|
|
uint16 ui_get_numlock_state(unsigned int state);
|
|
|
|
void reset_modifier_keys(void);
|
2002-09-26 16:04:30 +02:00
|
|
|
void rdp_send_scancode(uint32 time, uint16 flags, uint8 scancode);
|
2000-07-25 14:34:29 +02:00
|
|
|
/* xwin.c */
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL get_key_state(unsigned int state, uint32 keysym);
|
|
|
|
RD_BOOL ui_init(void);
|
2018-10-29 15:50:44 +01:00
|
|
|
void ui_get_screen_size(uint32 * width, uint32 * height);
|
|
|
|
void ui_get_screen_size_from_percentage(uint32 pw, uint32 ph, uint32 * width, uint32 * height);
|
|
|
|
void ui_get_workarea_size(uint32 * width, uint32 * height);
|
2002-09-24 09:33:17 +02:00
|
|
|
void ui_deinit(void);
|
2017-11-14 09:39:39 +01:00
|
|
|
RD_BOOL ui_create_window(uint32 width, uint32 height);
|
|
|
|
void ui_resize_window(uint32 width, uint32 height);
|
2000-08-15 12:23:24 +02:00
|
|
|
void ui_destroy_window(void);
|
2018-02-13 16:04:20 +01:00
|
|
|
void ui_update_window_sizehints(uint32 width, uint32 height);
|
2013-04-12 08:46:07 +02:00
|
|
|
RD_BOOL ui_have_window(void);
|
2002-09-14 15:47:24 +02:00
|
|
|
void xwin_toggle_fullscreen(void);
|
2017-11-14 09:39:39 +01:00
|
|
|
void ui_select(int rdp_socket);
|
2000-08-15 12:23:24 +02:00
|
|
|
void ui_move_pointer(int x, int y);
|
2007-01-04 05:55:56 +01:00
|
|
|
RD_HBITMAP ui_create_bitmap(int width, int height, uint8 * data);
|
2003-10-15 16:01:32 +02:00
|
|
|
void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 * data);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_destroy_bitmap(RD_HBITMAP bmp);
|
|
|
|
RD_HGLYPH ui_create_glyph(int width, int height, uint8 * data);
|
|
|
|
void ui_destroy_glyph(RD_HGLYPH glyph);
|
2018-10-29 15:50:44 +01:00
|
|
|
RD_HCURSOR ui_create_cursor(unsigned int x, unsigned int y, uint32 width, uint32 height,
|
|
|
|
uint8 * andmask, uint8 * xormask, int bpp);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_set_cursor(RD_HCURSOR cursor);
|
|
|
|
void ui_destroy_cursor(RD_HCURSOR cursor);
|
2003-10-22 12:55:11 +02:00
|
|
|
void ui_set_null_cursor(void);
|
2017-10-16 13:55:39 +02:00
|
|
|
void ui_set_standard_cursor(void);
|
2007-01-04 05:55:56 +01:00
|
|
|
RD_HCOLOURMAP ui_create_colourmap(COLOURMAP * colours);
|
|
|
|
void ui_destroy_colourmap(RD_HCOLOURMAP map);
|
|
|
|
void ui_set_colourmap(RD_HCOLOURMAP map);
|
2000-08-15 12:23:24 +02:00
|
|
|
void ui_set_clip(int x, int y, int cx, int cy);
|
|
|
|
void ui_reset_clip(void);
|
|
|
|
void ui_bell(void);
|
|
|
|
void ui_destblt(uint8 opcode, int x, int y, int cx, int cy);
|
2017-10-20 12:13:21 +02:00
|
|
|
void ui_patblt(uint8 opcode, int x, int y, int cx, int cy, BRUSH * brush, uint32 bgcolour,
|
|
|
|
uint32 fgcolour);
|
2002-07-30 09:18:48 +02:00
|
|
|
void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_memblt(uint8 opcode, int x, int y, int cx, int cy, RD_HBITMAP src, int srcx, int srcy);
|
|
|
|
void ui_triblt(uint8 opcode, int x, int y, int cx, int cy, RD_HBITMAP src, int srcx, int srcy,
|
2017-10-20 12:13:21 +02:00
|
|
|
BRUSH * brush, uint32 bgcolour, uint32 fgcolour);
|
2003-10-15 16:01:32 +02:00
|
|
|
void ui_line(uint8 opcode, int startx, int starty, int endx, int endy, PEN * pen);
|
2017-10-20 12:13:21 +02:00
|
|
|
void ui_rect(int x, int y, int cx, int cy, uint32 colour);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_polygon(uint8 opcode, uint8 fillmode, RD_POINT * point, int npoints, BRUSH * brush,
|
2017-10-20 12:13:21 +02:00
|
|
|
uint32 bgcolour, uint32 fgcolour);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_polyline(uint8 opcode, RD_POINT * points, int npoints, PEN * pen);
|
2005-03-08 01:43:10 +01:00
|
|
|
void ui_ellipse(uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH * brush,
|
2017-10-20 12:13:21 +02:00
|
|
|
uint32 bgcolour, uint32 fgcolour);
|
2007-01-04 05:55:56 +01:00
|
|
|
void ui_draw_glyph(int mixmode, int x, int y, int cx, int cy, RD_HGLYPH glyph, int srcx, int srcy,
|
2017-10-20 12:13:21 +02:00
|
|
|
uint32 bgcolour, uint32 fgcolour);
|
2005-08-02 11:43:56 +02:00
|
|
|
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,
|
2017-10-20 12:13:21 +02:00
|
|
|
BRUSH * brush, uint32 bgcolour, uint32 fgcolour, uint8 * text, uint8 length);
|
2000-08-15 12:23:24 +02:00
|
|
|
void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy);
|
|
|
|
void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy);
|
2005-08-02 11:43:56 +02:00
|
|
|
void ui_begin_update(void);
|
|
|
|
void ui_end_update(void);
|
2007-01-08 05:47:06 +01:00
|
|
|
void ui_seamless_begin(RD_BOOL hidden);
|
2010-01-20 10:59:47 +01:00
|
|
|
void ui_seamless_end();
|
2006-03-22 17:20:55 +01:00
|
|
|
void ui_seamless_hide_desktop(void);
|
|
|
|
void ui_seamless_unhide_desktop(void);
|
2006-03-10 09:50:43 +01:00
|
|
|
void ui_seamless_toggle(void);
|
2006-03-21 15:42:25 +01:00
|
|
|
void ui_seamless_create_window(unsigned long id, unsigned long group, unsigned long parent,
|
|
|
|
unsigned long flags);
|
2006-03-10 09:50:43 +01:00
|
|
|
void ui_seamless_destroy_window(unsigned long id, unsigned long flags);
|
2006-04-28 09:55:36 +02:00
|
|
|
void ui_seamless_destroy_group(unsigned long id, unsigned long flags);
|
2007-06-18 14:00:34 +02:00
|
|
|
void ui_seamless_seticon(unsigned long id, const char *format, int width, int height, int chunk,
|
2017-10-20 12:13:21 +02:00
|
|
|
const char *data, size_t chunk_len);
|
2007-06-18 14:00:34 +02:00
|
|
|
void ui_seamless_delicon(unsigned long id, const char *format, int width, int height);
|
2006-03-10 09:50:43 +01:00
|
|
|
void ui_seamless_move_window(unsigned long id, int x, int y, int width, int height,
|
|
|
|
unsigned long flags);
|
2006-03-17 09:52:29 +01:00
|
|
|
void ui_seamless_restack_window(unsigned long id, unsigned long behind, unsigned long flags);
|
2006-03-10 11:40:50 +01:00
|
|
|
void ui_seamless_settitle(unsigned long id, const char *title, unsigned long flags);
|
2006-03-10 09:50:43 +01:00
|
|
|
void ui_seamless_setstate(unsigned long id, unsigned int state, unsigned long flags);
|
2006-03-15 12:48:32 +01:00
|
|
|
void ui_seamless_syncbegin(unsigned long flags);
|
2006-03-20 13:36:14 +01:00
|
|
|
void ui_seamless_ack(unsigned int serial);
|
2006-03-02 16:22:25 +01:00
|
|
|
/* lspci.c */
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL lspci_init(void);
|
2017-11-08 09:29:41 +01:00
|
|
|
/* rdpedisp.c */
|
|
|
|
void rdpedisp_init(void);
|
2017-11-14 09:39:39 +01:00
|
|
|
RD_BOOL rdpedisp_is_available();
|
2017-11-08 09:29:41 +01:00
|
|
|
void rdpedisp_set_session_size(uint32 width, uint32 height);
|
|
|
|
/* dvc.c */
|
|
|
|
typedef void (*dvc_channel_process_fn) (STREAM s);
|
|
|
|
RD_BOOL dvc_init(void);
|
|
|
|
RD_BOOL dvc_channels_register(const char *name, dvc_channel_process_fn handler);
|
|
|
|
RD_BOOL dvc_channels_is_available(const char *name);
|
|
|
|
void dvc_send(const char *name, STREAM s);
|
2006-03-10 09:50:43 +01:00
|
|
|
/* seamless.c */
|
2007-01-08 05:47:06 +01:00
|
|
|
RD_BOOL seamless_init(void);
|
2014-07-02 10:25:07 +02:00
|
|
|
void seamless_reset_state(void);
|
2006-03-20 13:36:14 +01:00
|
|
|
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);
|
2006-03-17 13:39:09 +01:00
|
|
|
void seamless_select_timeout(struct timeval *tv);
|
2006-03-20 13:36:14 +01:00
|
|
|
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);
|
2008-03-07 12:27:12 +01:00
|
|
|
unsigned int seamless_send_destroy(unsigned long id);
|
2013-01-21 13:28:14 +01:00
|
|
|
unsigned int seamless_send_spawn(char *cmd);
|
2014-07-03 12:42:04 +02:00
|
|
|
unsigned int seamless_send_persistent(RD_BOOL);
|
2013-01-21 13:28:14 +01:00
|
|
|
|
2006-11-01 21:52:01 +01:00
|
|
|
/* scard.c */
|
2006-11-04 00:51:35 +01:00
|
|
|
void scard_lock(int lock);
|
|
|
|
void scard_unlock(int lock);
|
2010-01-26 11:13:53 +01:00
|
|
|
int scard_enum_devices(uint32 * id, char *optarg);
|
2014-09-11 13:54:46 +02:00
|
|
|
void scardSetInfo(uint32 epoch, uint32 device, uint32 id, uint32 bytes_out);
|
2010-01-26 13:23:53 +01:00
|
|
|
void scard_reset_state();
|
2018-04-03 19:51:34 +02:00
|
|
|
void scard_release_all_contexts(void);
|
2005-08-25 22:43:45 +02:00
|
|
|
|
|
|
|
/* *INDENT-OFF* */
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
/* *INDENT-ON* */
|
|
|
|
|
|
|
|
#endif
|