2 * FreeRDP: A Remote Desktop Protocol client.
3 * Virtual Channel Manager
5 * Copyright 2009-2011 Jay Sorg
6 * Copyright 2010-2011 Vic Lee
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #ifndef __FREERDP_CHANNELS_H
22 #define __FREERDP_CHANNELS_H
24 #include <freerdp/api.h>
25 #include <freerdp/types.h>
26 #include <freerdp/freerdp.h>
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);
53 #endif /* __FREERDP_CHANNELS_H */