17 #ifndef KAA_PLATFORM_COMMON_H_
18 #define KAA_PLATFORM_COMMON_H_
24 #define KAA_PLATFORM_PROTOCOL_VERSION 1
25 #define KAA_PLATFORM_PROTOCOL_ID 0x3553c66f
27 #define KAA_ALIGNMENT 4
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)
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)
43 #define KAA_SDK_TOKEN_LENGTH 27