1 |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
3 |
Seamless windows - Virtual channel handling |
4 |
|
5 |
Copyright (C) Pierre Ossman <ossman@cendio.se> 2006 |
6 |
|
7 |
This program is free software; you can redistribute it and/or modify |
8 |
it under the terms of the GNU General Public License as published by |
9 |
the Free Software Foundation; either version 2 of the License, or |
10 |
(at your option) any later version. |
11 |
|
12 |
This program is distributed in the hope that it will be useful, |
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
16 |
|
17 |
You should have received a copy of the GNU General Public License |
18 |
along with this program; if not, write to the Free Software |
19 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
20 |
*/ |
21 |
|
22 |
#ifndef __VCHANNEL_H__ |
23 |
#define __VCHANNEL_H__ |
24 |
|
25 |
#define VCHANNEL_MAX_LINE 1024 |
26 |
|
27 |
void debug(char *format, ...); |
28 |
|
29 |
int vchannel_open(); |
30 |
void vchannel_close(); |
31 |
|
32 |
int vchannel_is_open(); |
33 |
|
34 |
/* read may only be used by a single process. write is completely safe */ |
35 |
int vchannel_read(char *line, size_t length); |
36 |
int vchannel_write(const char *format, ...); |
37 |
|
38 |
void vchannel_block(); |
39 |
void vchannel_unblock(); |
40 |
|
41 |
const char *vchannel_strfilter(char *string); |
42 |
|
43 |
#endif |