~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/RDP/client/proto.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-07-04 13:02:31 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110704130231-l843es6wqhx614n7
Tags: 4.0.10-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Add the Modaliases control field manually for maximum backportability.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- c-basic-offset: 8 -*-
2
2
   rdesktop: A Remote Desktop Protocol client.
3
 
   Copyright (C) Matthew Chapman 1999-2007
 
3
   Copyright (C) Matthew Chapman 1999-2008
4
4
 
5
 
   This program is free software; you can redistribute it and/or modify
 
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
7
 
   the Free Software Foundation; either version 2 of the License, or
 
7
   the Free Software Foundation, either version 3 of the License, or
8
8
   (at your option) any later version.
9
9
 
10
10
   This program is distributed in the hope that it will be useful,
13
13
   GNU General Public License for more details.
14
14
 
15
15
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software
17
 
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
16
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
17
*/
19
18
 
20
19
/*
53
52
                       uint8 * data);
54
53
RD_HCURSOR cache_get_cursor(uint16 cache_idx);
55
54
void cache_put_cursor(uint16 cache_idx, RD_HCURSOR cursor);
 
55
BRUSHDATA *cache_get_brush_data(uint8 colour_code, uint8 idx);
 
56
void cache_put_brush_data(uint8 colour_code, uint8 idx, BRUSHDATA * brush_data);
56
57
/* channels.c */
57
58
VCHANNEL *channel_register(char *name, uint32 flags, void (*callback) (STREAM));
58
59
STREAM channel_init(VCHANNEL * channel, uint32 length);
82
83
STREAM iso_init(int length);
83
84
void iso_send(STREAM s);
84
85
STREAM iso_recv(uint8 * rdpver);
85
 
RD_BOOL iso_connect(char *server, char *username);
86
 
RD_BOOL iso_reconnect(char *server);
 
86
RD_BOOL iso_connect(char *server, char *username, RD_BOOL reconnect);
87
87
void iso_disconnect(void);
88
88
void iso_reset_state(void);
89
89
/* licence.c */
93
93
void mcs_send_to_channel(STREAM s, uint16 channel);
94
94
void mcs_send(STREAM s);
95
95
STREAM mcs_recv(uint16 * channel, uint8 * rdpver);
96
 
RD_BOOL mcs_connect(char *server, STREAM mcs_data, char *username);
97
 
RD_BOOL mcs_reconnect(char *server, STREAM mcs_data);
 
96
RD_BOOL mcs_connect(char *server, STREAM mcs_data, char *username, RD_BOOL reconnect);
98
97
void mcs_disconnect(void);
99
98
void mcs_reset_state(void);
100
99
/* orders.c */
151
150
                    uint16 param2);
152
151
void rdp_send_client_window_status(int status);
153
152
void process_colour_pointer_pdu(STREAM s);
 
153
void process_new_pointer_pdu(STREAM s);
154
154
void process_cached_pointer_pdu(STREAM s);
155
155
void process_system_pointer_pdu(STREAM s);
156
156
void process_bitmap_updates(STREAM s);
159
159
void rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
160
160
RD_BOOL rdp_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason);
161
161
RD_BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command,
162
 
                    char *directory);
163
 
RD_BOOL rdp_reconnect(char *server, uint32 flags, char *domain, char *password, char *command,
164
 
                      char *directory, char *cookie);
 
162
                    char *directory, RD_BOOL reconnect);
165
163
void rdp_reset_state(void);
166
164
void rdp_disconnect(void);
167
165
/* rdpdr.c */
169
167
void convert_to_unix_filename(char *filename);
170
168
void rdpdr_send_completion(uint32 device, uint32 id, uint32 status, uint32 result, uint8 * buffer,
171
169
                           uint32 length);
172
 
RD_BOOL rdpdr_init(void);
 
170
RD_BOOL rdpdr_init();
173
171
void rdpdr_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv, RD_BOOL * timeout);
174
172
struct async_iorequest *rdpdr_remove_iorequest(struct async_iorequest *prev,
175
173
                                               struct async_iorequest *iorq);
185
183
RD_BOOL rdpsnd_queue_empty(void);
186
184
void rdpsnd_queue_next(unsigned long completed_in_us);
187
185
int rdpsnd_queue_next_tick(void);
 
186
void rdpsnd_reset_state(void);
188
187
/* secure.c */
189
188
void sec_hash_48(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2, uint8 salt);
190
189
void sec_hash_16(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2);
197
196
void sec_send(STREAM s, uint32 flags);
198
197
void sec_process_mcs_data(STREAM s);
199
198
STREAM sec_recv(uint8 * rdpver);
200
 
RD_BOOL sec_connect(char *server, char *username);
201
 
RD_BOOL sec_reconnect(char *server);
 
199
RD_BOOL sec_connect(char *server, char *username, RD_BOOL reconnect);
202
200
void sec_disconnect(void);
203
201
void sec_reset_state(void);
204
202
/* serial.c */
243
241
/* xwin.c */
244
242
RD_BOOL get_key_state(unsigned int state, uint32 keysym);
245
243
RD_BOOL ui_init(void);
 
244
void ui_init_connection(void);
246
245
void ui_deinit(void);
247
246
RD_BOOL ui_create_window(void);
248
247
void ui_resize_window(void);
256
255
RD_HGLYPH ui_create_glyph(int width, int height, uint8 * data);
257
256
void ui_destroy_glyph(RD_HGLYPH glyph);
258
257
RD_HCURSOR ui_create_cursor(unsigned int x, unsigned int y, int width, int height, uint8 * andmask,
259
 
                            uint8 * xormask);
 
258
                            uint8 * xormask, int bpp);
260
259
void ui_set_cursor(RD_HCURSOR cursor);
261
260
void ui_destroy_cursor(RD_HCURSOR cursor);
262
261
void ui_set_null_cursor(void);
290
289
void ui_begin_update(void);
291
290
void ui_end_update(void);
292
291
void ui_seamless_begin(RD_BOOL hidden);
 
292
void ui_seamless_end();
293
293
void ui_seamless_hide_desktop(void);
294
294
void ui_seamless_unhide_desktop(void);
295
295
void ui_seamless_toggle(void);
322
322
/* scard.c */
323
323
void scard_lock(int lock);
324
324
void scard_unlock(int lock);
 
325
int scard_enum_devices(uint32 * id, char *optarg);
 
326
void scardSetInfo(uint32 device, uint32 id, uint32 bytes_out);
 
327
void scard_reset_state();
325
328
/* vrdp/rdpusb.c */
326
329
RD_BOOL rdpusb_init(void);
327
330
void rdpusb_close (void);