Fix changelog email address
[freerdp-ubuntu-pcb-backport.git] / libfreerdp-channels / wtsvc.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol client.
3  * Server Virtual Channel Interface
4  *
5  * Copyright 2011-2012 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 __WTSVC_H
21 #define __WTSVC_H
22
23 #include <freerdp/freerdp.h>
24 #include <freerdp/utils/stream.h>
25 #include <freerdp/utils/list.h>
26 #include <freerdp/utils/mutex.h>
27 #include <freerdp/utils/wait_obj.h>
28 #include <freerdp/channels/wtsvc.h>
29
30 enum
31 {
32         RDP_PEER_CHANNEL_TYPE_SVC = 0,
33         RDP_PEER_CHANNEL_TYPE_DVC = 1,
34         RDP_PEER_CHANNEL_TYPE_DVC_SUB = 2
35 };
36
37 typedef struct rdp_peer_channel
38 {
39         WTSVirtualChannelManager* vcm;
40         freerdp_peer* client;
41         uint16 channel_id;
42         uint16 channel_type;
43         uint16 index;
44
45         STREAM* receive_data;
46         struct wait_obj* receive_event;
47         LIST* receive_queue;
48         freerdp_mutex mutex;
49 } rdpPeerChannel;
50
51 struct WTSVirtualChannelManager
52 {
53         freerdp_peer* client;
54         struct wait_obj* send_event;
55         LIST* send_queue;
56         freerdp_mutex mutex;
57
58         rdpPeerChannel* drdynvc_channel;
59 };
60
61 #endif /* __WTSVC_H */