/[rdesktop]/sourceforge.net/trunk/rdesktop/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 /sourceforge.net/trunk/rdesktop/proto.h

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

revision 1300 by ossman_, Thu Oct 19 12:26:55 2006 UTC revision 1364 by jsorg71, Thu Jan 4 04:55:56 2007 UTC
# Line 31  BOOL bitmap_decompress(uint8 * output, i Line 31  BOOL bitmap_decompress(uint8 * output, i
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);
33  void cache_evict_bitmap(uint8 id);  void cache_evict_bitmap(uint8 id);
34  HBITMAP cache_get_bitmap(uint8 id, uint16 idx);  RD_HBITMAP cache_get_bitmap(uint8 id, uint16 idx);
35  void cache_put_bitmap(uint8 id, uint16 idx, HBITMAP bitmap);  void cache_put_bitmap(uint8 id, uint16 idx, RD_HBITMAP bitmap);
36  void cache_save_state(void);  void cache_save_state(void);
37  FONTGLYPH *cache_get_font(uint8 font, uint16 character);  FONTGLYPH *cache_get_font(uint8 font, uint16 character);
38  void cache_put_font(uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width,  void cache_put_font(uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width,
39                      uint16 height, HGLYPH pixmap);                      uint16 height, RD_HGLYPH pixmap);
40  DATABLOB *cache_get_text(uint8 cache_id);  DATABLOB *cache_get_text(uint8 cache_id);
41  void cache_put_text(uint8 cache_id, void *data, int length);  void cache_put_text(uint8 cache_id, void *data, int length);
42  uint8 *cache_get_desktop(uint32 offset, int cx, int cy, int bytes_per_pixel);  uint8 *cache_get_desktop(uint32 offset, int cx, int cy, int bytes_per_pixel);
43  void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel,  void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel,
44                         uint8 * data);                         uint8 * data);
45  HCURSOR cache_get_cursor(uint16 cache_idx);  RD_HCURSOR cache_get_cursor(uint16 cache_idx);
46  void cache_put_cursor(uint16 cache_idx, HCURSOR cursor);  void cache_put_cursor(uint16 cache_idx, RD_HCURSOR cursor);
47  /* channels.c */  /* channels.c */
48  VCHANNEL *channel_register(char *name, uint32 flags, void (*callback) (STREAM));  VCHANNEL *channel_register(char *name, uint32 flags, void (*callback) (STREAM));
49  STREAM channel_init(VCHANNEL * channel, uint32 length);  STREAM channel_init(VCHANNEL * channel, uint32 length);
# Line 58  void cliprdr_set_mode(const char *optarg Line 58  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);
61  NTSTATUS disk_query_information(NTHANDLE handle, uint32 info_class, STREAM out);  RD_NTSTATUS disk_query_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);
62  NTSTATUS disk_set_information(NTHANDLE handle, uint32 info_class, STREAM in, STREAM out);  RD_NTSTATUS disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM out);
63  NTSTATUS disk_check_notify(NTHANDLE handle);  RD_NTSTATUS disk_check_notify(RD_NTHANDLE handle);
64  NTSTATUS disk_create_notify(NTHANDLE handle, uint32 info_class);  RD_NTSTATUS disk_create_notify(RD_NTHANDLE handle, uint32 info_class);
65  NTSTATUS disk_query_volume_information(NTHANDLE handle, uint32 info_class, STREAM out);  RD_NTSTATUS disk_query_volume_information(RD_NTHANDLE handle, uint32 info_class, STREAM out);
66  NTSTATUS disk_query_directory(NTHANDLE handle, uint32 info_class, char *pattern, STREAM out);  RD_NTSTATUS disk_query_directory(RD_NTHANDLE handle, uint32 info_class, char *pattern, STREAM out);
67  /* mppc.c */  /* mppc.c */
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 */
# Line 109  BOOL pstcache_init(uint8 cache_id); Line 109  BOOL pstcache_init(uint8 cache_id);
109  int main(int argc, char *argv[]);  int main(int argc, char *argv[]);
110  void generate_random(uint8 * random);  void generate_random(uint8 * random);
111  void *xmalloc(int size);  void *xmalloc(int size);
112    void exit_if_null(void *ptr);
113  char *xstrdup(const char *s);  char *xstrdup(const char *s);
114  void *xrealloc(void *oldmem, int size);  void *xrealloc(void *oldmem, int size);
115  void xfree(void *mem);  void xfree(void *mem);
# Line 154  BOOL rdp_reconnect(char *server, uint32 Line 155  BOOL rdp_reconnect(char *server, uint32
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 */
158  int get_device_index(NTHANDLE handle);  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,
161                               uint32 length);
162  BOOL rdpdr_init(void);  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, 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, BOOL timed_out);
167  BOOL rdpdr_abort_io(uint32 fd, uint32 major, NTSTATUS status);  BOOL rdpdr_abort_io(uint32 fd, uint32 major, RD_NTSTATUS status);
168  /* rdpsnd.c */  /* rdpsnd.c */
169  void rdpsnd_send_completion(uint16 tick, uint8 packet_index);  void rdpsnd_record(const void *data, unsigned int size);
170  BOOL rdpsnd_init(char *optarg);  BOOL rdpsnd_init(char *optarg);
171  void rdpsnd_show_help(void);  void rdpsnd_show_help(void);
172  void rdpsnd_play(void);  void rdpsnd_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv);
173  void rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index);  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);  BOOL rdpsnd_queue_empty(void);
176  void rdpsnd_queue_init(void);  void rdpsnd_queue_next(unsigned long completed_in_us);
 void rdpsnd_queue_next(void);  
177  int rdpsnd_queue_next_tick(void);  int rdpsnd_queue_next_tick(void);
178  /* secure.c */  /* secure.c */
179  void sec_hash_48(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2, uint8 salt);  void sec_hash_48(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2, uint8 salt);
# Line 191  void sec_disconnect(void); Line 193  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(NTHANDLE handle, uint32 * result);  BOOL serial_get_event(RD_NTHANDLE handle, uint32 * result);
197  BOOL serial_get_timeout(NTHANDLE handle, uint32 length, uint32 * timeout, uint32 * itv_timeout);  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);
# Line 237  void ui_destroy_window(void); Line 239  void ui_destroy_window(void);
239  void xwin_toggle_fullscreen(void);  void xwin_toggle_fullscreen(void);
240  int ui_select(int rdp_socket);  int ui_select(int rdp_socket);
241  void ui_move_pointer(int x, int y);  void ui_move_pointer(int x, int y);
242  HBITMAP ui_create_bitmap(int width, int height, uint8 * data);  RD_HBITMAP ui_create_bitmap(int width, int height, uint8 * data);
243  void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 * data);  void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 * data);
244  void ui_destroy_bitmap(HBITMAP bmp);  void ui_destroy_bitmap(RD_HBITMAP bmp);
245  HGLYPH ui_create_glyph(int width, int height, uint8 * data);  RD_HGLYPH ui_create_glyph(int width, int height, uint8 * data);
246  void ui_destroy_glyph(HGLYPH glyph);  void ui_destroy_glyph(RD_HGLYPH glyph);
247  HCURSOR ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 * andmask,  RD_HCURSOR ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 * andmask,
248                           uint8 * xormask);                              uint8 * xormask);
249  void ui_set_cursor(HCURSOR cursor);  void ui_set_cursor(RD_HCURSOR cursor);
250  void ui_destroy_cursor(HCURSOR cursor);  void ui_destroy_cursor(RD_HCURSOR cursor);
251  void ui_set_null_cursor(void);  void ui_set_null_cursor(void);
252  HCOLOURMAP ui_create_colourmap(COLOURMAP * colours);  RD_HCOLOURMAP ui_create_colourmap(COLOURMAP * colours);
253  void ui_destroy_colourmap(HCOLOURMAP map);  void ui_destroy_colourmap(RD_HCOLOURMAP map);
254  void ui_set_colourmap(HCOLOURMAP map);  void ui_set_colourmap(RD_HCOLOURMAP map);
255  void ui_set_clip(int x, int y, int cx, int cy);  void ui_set_clip(int x, int y, int cx, int cy);
256  void ui_reset_clip(void);  void ui_reset_clip(void);
257  void ui_bell(void);  void ui_bell(void);
# Line 257  void ui_destblt(uint8 opcode, int x, int Line 259  void ui_destblt(uint8 opcode, int x, int
259  void ui_patblt(uint8 opcode, int x, int y, int cx, int cy, BRUSH * brush, int bgcolour,  void ui_patblt(uint8 opcode, int x, int y, int cx, int cy, BRUSH * brush, int bgcolour,
260                 int fgcolour);                 int fgcolour);
261  void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy);  void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy);
262  void ui_memblt(uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy);  void ui_memblt(uint8 opcode, int x, int y, int cx, int cy, RD_HBITMAP src, int srcx, int srcy);
263  void ui_triblt(uint8 opcode, int x, int y, int cx, int cy, 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,
264                 BRUSH * brush, int bgcolour, int fgcolour);                 BRUSH * brush, int bgcolour, int fgcolour);
265  void ui_line(uint8 opcode, int startx, int starty, int endx, int endy, PEN * pen);  void ui_line(uint8 opcode, int startx, int starty, int endx, int endy, PEN * pen);
266  void ui_rect(int x, int y, int cx, int cy, int colour);  void ui_rect(int x, int y, int cx, int cy, int colour);
267  void ui_polygon(uint8 opcode, uint8 fillmode, POINT * point, int npoints, BRUSH * brush,  void ui_polygon(uint8 opcode, uint8 fillmode, RD_POINT * point, int npoints, BRUSH * brush,
268                  int bgcolour, int fgcolour);                  int bgcolour, int fgcolour);
269  void ui_polyline(uint8 opcode, POINT * points, int npoints, PEN * pen);  void ui_polyline(uint8 opcode, RD_POINT * points, int npoints, PEN * pen);
270  void ui_ellipse(uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH * brush,  void ui_ellipse(uint8 opcode, uint8 fillmode, int x, int y, int cx, int cy, BRUSH * brush,
271                  int bgcolour, int fgcolour);                  int bgcolour, int fgcolour);
272  void ui_draw_glyph(int mixmode, int x, int y, int cx, int cy, HGLYPH glyph, int srcx, int srcy,  void ui_draw_glyph(int mixmode, int x, int y, int cx, int cy, RD_HGLYPH glyph, int srcx, int srcy,
273                     int bgcolour, int fgcolour);                     int bgcolour, int fgcolour);
274  void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y, int clipx,  void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode, int x, int y, int clipx,
275                    int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy,                    int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy,
# Line 302  unsigned int seamless_send_position(unsi Line 304  unsigned int seamless_send_position(unsi
304  void seamless_select_timeout(struct timeval *tv);  void seamless_select_timeout(struct timeval *tv);
305  unsigned int seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags);  unsigned int seamless_send_zchange(unsigned long id, unsigned long below, unsigned long flags);
306  unsigned int seamless_send_focus(unsigned long id, unsigned long flags);  unsigned int seamless_send_focus(unsigned long id, unsigned long flags);
307    /* scard.c */
308    void scardSetInfo(uint32 device, uint32 id, uint32 bytes_out);
309    int scard_enum_devices(uint32 * id, char *optarg);
310    void scard_lock(int lock);
311    void scard_unlock(int lock);
312    STREAM scard_tcp_init(void);
313    void scard_tcp_connect(void);
314    void scard_tcp_reset_state(void);
315    
316  /* *INDENT-OFF* */  /* *INDENT-OFF* */
317  #ifdef __cplusplus  #ifdef __cplusplus

Legend:
Removed from v.1300  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC 1.1.26