Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
kaa_platform_common.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 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 
29 /*
30  * All definitions related to a field size specify in bytes.
31  */
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 2
38 #define KAA_EXTENSION_OPTIONS_SIZE 2
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 
42 
43 #define KAA_SDK_TOKEN_LENGTH 27
44 
48 typedef enum {
54 
58 typedef enum {
68 
69 
70 
71 #ifdef __cplusplus
72 } /* extern "C" */
73 #endif
74 #endif /* SRC_KAA_PLATFORM_COMMON_H_ */
Definition: kaa_platform_common.h:66
Definition: kaa_platform_common.h:61
kaa_profile_extension_options_t
Constants used for a profile extension.
Definition: kaa_platform_common.h:58
Definition: kaa_platform_common.h:49
Definition: kaa_platform_common.h:50
kaa_meta_data_extension_options_t
Constants used for a meta data extension.
Definition: kaa_platform_common.h:48
Definition: kaa_platform_common.h:59
Definition: kaa_platform_common.h:64
Definition: kaa_platform_common.h:52
Definition: kaa_platform_common.h:51
Definition: kaa_platform_common.h:60
Definition: kaa_platform_common.h:63
Definition: kaa_platform_common.h:62
Definition: kaa_platform_common.h:65