75 |
/* RDP layer */ |
/* RDP layer */ |
76 |
HCONN rdp_connect(char *server); |
HCONN rdp_connect(char *server); |
77 |
void rdp_main_loop(HCONN conn); |
void rdp_main_loop(HCONN conn); |
78 |
|
void process_opaque_rect(HCONN conn, RDP_ORDER_STATE *os, BOOL delta); |
79 |
|
void process_bmpcache(HCONN conn); |
80 |
void process_orders(HCONN conn, RDP_ORDER_STATE *os); |
void process_orders(HCONN conn, RDP_ORDER_STATE *os); |
81 |
|
void process_palette(HCONN conn); |
82 |
|
void process_update(HCONN conn, RDP_ORDER_STATE *os); |
83 |
|
void process_pointer(HCONN conn); |
84 |
void rdp_establish_key(HCONN conn); |
void rdp_establish_key(HCONN conn); |
85 |
void rdp_send_cert(HCONN conn); |
void rdp_send_cert(HCONN conn); |
86 |
void rdp_send_confirm_active(HCONN conn); |
void rdp_send_confirm_active(HCONN conn); |
110 |
void rdp_make_input_pdu(RDP_INPUT_PDU *pdu); |
void rdp_make_input_pdu(RDP_INPUT_PDU *pdu); |
111 |
BOOL rdp_io_header(STREAM s, RDP_HEADER *hdr); |
BOOL rdp_io_header(STREAM s, RDP_HEADER *hdr); |
112 |
BOOL rdp_io_data_header(STREAM s, RDP_DATA_HEADER *hdr); |
BOOL rdp_io_data_header(STREAM s, RDP_DATA_HEADER *hdr); |
113 |
|
BOOL rdp_io_coord(STREAM s, uint16 *coord, BOOL delta); |
114 |
|
BOOL rdp_io_colormap(STREAM s, COLORMAP *colors); |
115 |
BOOL rdp_io_general_caps(STREAM s, RDP_GENERAL_CAPS *caps); |
BOOL rdp_io_general_caps(STREAM s, RDP_GENERAL_CAPS *caps); |
116 |
BOOL rdp_io_bitmap_caps(STREAM s, RDP_BITMAP_CAPS *caps); |
BOOL rdp_io_bitmap_caps(STREAM s, RDP_BITMAP_CAPS *caps); |
117 |
BOOL rdp_io_order_caps(STREAM s, RDP_ORDER_CAPS *caps); |
BOOL rdp_io_order_caps(STREAM s, RDP_ORDER_CAPS *caps); |
132 |
BOOL rdp_io_update_pdu(STREAM s, RDP_UPDATE_PDU *pdu); |
BOOL rdp_io_update_pdu(STREAM s, RDP_UPDATE_PDU *pdu); |
133 |
BOOL rdp_io_secondary_order(STREAM s, RDP_SECONDARY_ORDER *rso); |
BOOL rdp_io_secondary_order(STREAM s, RDP_SECONDARY_ORDER *rso); |
134 |
BOOL rdp_io_bitmap_header(STREAM s, RDP_BITMAP_HEADER *rdh); |
BOOL rdp_io_bitmap_header(STREAM s, RDP_BITMAP_HEADER *rdh); |
135 |
|
BOOL rdp_io_pointer(STREAM s, RDP_POINTER *ptr); |
136 |
|
|
137 |
|
|
138 |
/* Utility routines */ |
/* Utility routines */ |
139 |
void *xmalloc(int size); |
void *xmalloc(int size); |
140 |
void *xrealloc(void *oldmem, int size); |
void *xrealloc(void *oldmem, int size); |
141 |
BOOL bitmap_decompress(unsigned char *input, int size, |
void dump_data(unsigned char *p, int len); |
142 |
unsigned char *output, int width); |
BOOL bitmap_decompress(unsigned char *output, int width, int height, |
143 |
|
unsigned char *input, int size); |
144 |
|
|
145 |
/* User interface routines */ |
/* User interface routines */ |
146 |
HWINDOW ui_create_window(int width, int height); |
HWINDOW ui_create_window(int width, int height); |
147 |
void ui_destroy_window(HWINDOW wnd); |
void ui_destroy_window(HWINDOW wnd); |
148 |
HBITMAP ui_create_bitmap(HWINDOW wnd, int width, int height, uint8 *data); |
HBITMAP ui_create_bitmap(HWINDOW wnd, int width, int height, uint8 *data); |
149 |
void ui_destroy_bitmap(HBITMAP bmp); |
void ui_destroy_bitmap(HWINDOW wnd, HBITMAP bmp); |
150 |
void ui_paint_bitmap(HWINDOW wnd, HBITMAP bmp, int x, int y); |
void ui_paint_bitmap(HWINDOW wnd, HBITMAP bmp, int x, int y); |
151 |
|
HCOLORMAP ui_create_colormap(HWINDOW wnd, COLORMAP *colors); |
152 |
|
void ui_destroy_colormap(HWINDOW wnd, HCOLORMAP map); |
153 |
|
void ui_set_colormap(HWINDOW wnd, HCOLORMAP map); |
154 |
|
void ui_draw_rectangle(HWINDOW wnd, int x, int y, int width, int height); |
155 |
|
void ui_move_pointer(HWINDOW wnd, int x, int y); |
156 |
|
|