client-c  0.7.0
kaa_platform_common.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef KAA_PLATFORM_COMMON_H_
18 #define KAA_PLATFORM_COMMON_H_
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #define KAA_PLATFORM_PROTOCOL_VERSION 1
25 #define KAA_PLATFORM_PROTOCOL_ID 0x3553c66f
26 
27 #define KAA_ALIGNMENT 4
28 
32 #define KAA_PROTOCOL_ID_SIZE 4
33 #define KAA_PROTOCOL_VERSION_SIZE 2
34 #define KAA_PROTOCOL_EXTENSIONS_COUNT_SIZE 2
35 #define KAA_PROTOCOL_MESSAGE_HEADER_SIZE (KAA_PROTOCOL_ID_SIZE + KAA_PROTOCOL_VERSION_SIZE + KAA_PROTOCOL_EXTENSIONS_COUNT_SIZE)
36 
37 #define KAA_EXTENSION_TYPE_SIZE 1
38 #define KAA_EXTENSION_OPTIONS_SIZE 3
39 #define KAA_EXTENSION_PAYLOAD_LENGTH_SIZE 4
40 #define KAA_EXTENSION_HEADER_SIZE (KAA_EXTENSION_TYPE_SIZE + KAA_EXTENSION_OPTIONS_SIZE + KAA_EXTENSION_PAYLOAD_LENGTH_SIZE)
41 
45 #define KAA_BOOTSTRAP_EXTENSION_TYPE 0
46 #define KAA_META_DATA_EXTENSION_TYPE 1
47 #define KAA_PROFILE_EXTENSION_TYPE 2
48 #define KAA_USER_EXTENSION_TYPE 3
49 #define KAA_LOGGING_EXTENSION_TYPE 4
50 #define KAA_CONFIGURATION_EXTENSION_TYPE 5
51 #define KAA_EVENT_EXTENSION_TYPE 7
52 /*
53  * Not yet implemented
54  */
55 #define KAA_NOTIFICATION_EXTENSION_TYPE 6
56 #define KAA_REDIRECT_EXTENSION_TYPE 8
57 
58 
59 #define KAA_APPLICATION_TOKEN_LENGTH 20
60 
64 typedef enum {
70 
74 typedef enum {
84 
85 
86 
87 #ifdef __cplusplus
88 } /* extern "C" */
89 #endif
90 #endif /* SRC_KAA_PLATFORM_COMMON_H_ */
kaa_profile_extension_options_t
kaa_meta_data_extension_options_t