Initial commit - from Precise source
[freerdp-ubuntu-pcb-backport.git] / channels / drdynvc / dvcman.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol client.
3  * Dynamic Virtual Channel Manager
4  *
5  * Copyright 2010-2011 Vic Lee
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 #ifndef __DVCMAN_H
21 #define __DVCMAN_H
22
23 #include <freerdp/dvc.h>
24 #include "drdynvc_main.h"
25
26 IWTSVirtualChannelManager* dvcman_new(drdynvcPlugin* plugin);
27 int dvcman_load_plugin(IWTSVirtualChannelManager* pChannelMgr, RDP_PLUGIN_DATA* data);
28 void dvcman_free(IWTSVirtualChannelManager* pChannelMgr);
29 int dvcman_init(IWTSVirtualChannelManager* pChannelMgr);
30 int dvcman_create_channel(IWTSVirtualChannelManager* pChannelMgr, uint32 ChannelId, const char* ChannelName);
31 int dvcman_close_channel(IWTSVirtualChannelManager* pChannelMgr, uint32 ChannelId);
32 int dvcman_receive_channel_data_first(IWTSVirtualChannelManager* pChannelMgr, uint32 ChannelId, uint32 length);
33 int dvcman_receive_channel_data(IWTSVirtualChannelManager* pChannelMgr, uint32 ChannelId, uint8* data, uint32 data_size);
34
35 #endif