Fix changelog email address
[freerdp-ubuntu-pcb-backport.git] / include / freerdp / channels / channels.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol client.
3  * Virtual Channel Manager
4  *
5  * Copyright 2009-2011 Jay Sorg
6  * Copyright 2010-2011 Vic Lee
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __FREERDP_CHANNELS_H
22 #define __FREERDP_CHANNELS_H
23
24 #include <freerdp/api.h>
25 #include <freerdp/types.h>
26 #include <freerdp/freerdp.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 FREERDP_API int freerdp_channels_global_init(void);
33 FREERDP_API int freerdp_channels_global_uninit(void);
34 FREERDP_API rdpChannels* freerdp_channels_new(void);
35 FREERDP_API void freerdp_channels_free(rdpChannels* channels);
36 FREERDP_API int freerdp_channels_load_plugin(rdpChannels* channels, rdpSettings* settings,
37         const char* name, void* data);
38 FREERDP_API int freerdp_channels_pre_connect(rdpChannels* channels, freerdp* instance);
39 FREERDP_API int freerdp_channels_post_connect(rdpChannels* channels, freerdp* instance);
40 FREERDP_API int freerdp_channels_data(freerdp* instance, int channel_id, void* data, int data_size,
41         int flags, int total_size);
42 FREERDP_API int freerdp_channels_send_event(rdpChannels* channels, RDP_EVENT* event);
43 FREERDP_API boolean freerdp_channels_get_fds(rdpChannels* channels, freerdp* instance, void** read_fds,
44         int* read_count, void** write_fds, int* write_count);
45 FREERDP_API boolean freerdp_channels_check_fds(rdpChannels* channels, freerdp* instance);
46 FREERDP_API RDP_EVENT* freerdp_channels_pop_event(rdpChannels* channels);
47 FREERDP_API void freerdp_channels_close(rdpChannels* channels, freerdp* instance);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* __FREERDP_CHANNELS_H */