Fix changelog email address
[freerdp-ubuntu-pcb-backport.git] / include / freerdp / constants.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Client
3  * RDP Constants
4  *
5  * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
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 __FREERDP_CONSTANTS
21 #define __FREERDP_CONSTANTS
22
23 /**
24  * Codec IDs
25  */
26 enum RDP_CODEC_ID
27 {
28         CODEC_ID_NONE = 0x00,
29         CODEC_ID_NSCODEC = 0x01,
30         CODEC_ID_REMOTEFX = 0x03
31 };
32
33 /**
34  * Static Virtual Channel Flags
35  */
36 enum RDP_SVC_CHANNEL_FLAG
37 {
38         CHANNEL_FLAG_MIDDLE = 0,
39         CHANNEL_FLAG_FIRST = 0x01,
40         CHANNEL_FLAG_LAST = 0x02,
41         CHANNEL_FLAG_ONLY = (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST),
42         CHANNEL_FLAG_SHOW_PROTOCOL = 0x10,
43         CHANNEL_FLAG_SUSPEND = 0x20,
44         CHANNEL_FLAG_RESUME = 0x40,
45         CHANNEL_FLAG_FAIL = 0x100
46 };
47
48 /**
49  * Static Virtual Channel Options
50  */
51 enum RDP_SVC_CHANNEL_OPTION
52 {
53         CHANNEL_OPTION_SHOW_PROTOCOL = 0x00200000,
54         CHANNEL_OPTION_COMPRESS      = 0x00400000,
55         CHANNEL_OPTION_COMPRESS_RDP  = 0x00800000,
56         CHANNEL_OPTION_PRI_LOW       = 0x02000000,
57         CHANNEL_OPTION_PRI_MED       = 0x04000000,
58         CHANNEL_OPTION_PRI_HIGH      = 0x08000000,
59         CHANNEL_OPTION_ENCRYPT_CS    = 0x10000000,
60         CHANNEL_OPTION_ENCRYPT_SC    = 0x20000000,
61         CHANNEL_OPTION_ENCRYPT_RDP   = 0x40000000,
62         CHANNEL_OPTION_INITIALIZED   = 0x80000000
63 };
64
65 /**
66  * Static Virtual Channel Events
67  */
68 enum RDP_SVC_CHANNEL_EVENT
69 {
70         CHANNEL_EVENT_INITIALIZED = 0,
71         CHANNEL_EVENT_CONNECTED = 1,
72         CHANNEL_EVENT_V1_CONNECTED = 2,
73         CHANNEL_EVENT_DISCONNECTED = 3,
74         CHANNEL_EVENT_TERMINATED = 4,
75         CHANNEL_EVENT_DATA_RECEIVED = 10,
76         CHANNEL_EVENT_WRITE_COMPLETE = 11,
77         CHANNEL_EVENT_WRITE_CANCELLED = 12,
78         CHANNEL_EVENT_USER = 1000
79 };
80
81 /**
82  * Virtual Channel Constants
83  */
84 #define CHANNEL_CHUNK_LENGTH 1600
85
86 /**
87  * CPU Optimization flags
88  */
89 #define CPU_SSE2                        0x1
90
91 /**
92  * OSMajorType
93  */
94 #define OSMAJORTYPE_UNSPECIFIED                 0x0000
95 #define OSMAJORTYPE_WINDOWS                     0x0001
96 #define OSMAJORTYPE_OS2                         0x0002
97 #define OSMAJORTYPE_MACINTOSH                   0x0003
98 #define OSMAJORTYPE_UNIX                        0x0004
99
100 /**
101  * OSMinorType
102  */
103 #define OSMINORTYPE_UNSPECIFIED                 0x0000
104 #define OSMINORTYPE_WINDOWS_31X                 0x0001
105 #define OSMINORTYPE_WINDOWS_95                  0x0002
106 #define OSMINORTYPE_WINDOWS_NT                  0x0003
107 #define OSMINORTYPE_OS2_V21                     0x0004
108 #define OSMINORTYPE_POWER_PC                    0x0005
109 #define OSMINORTYPE_MACINTOSH                   0x0006
110 #define OSMINORTYPE_NATIVE_XSERVER              0x0007
111 #define OSMINORTYPE_PSEUDO_XSERVER              0x0008
112
113 #endif