client-c  0.7.0
kaa_defaults.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 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_DEFAULTS_H_
18 # define KAA_DEFAULTS_H_
19 
26 # include "kaa_common.h"
27 
28 # ifdef __cplusplus
29 extern "C" {
30 # endif
31 
32 # define BUILD_VERSION "0.6.1-SNAPSHOT"
33 # define BUILD_COMMIT_HASH "N/A"
34 
35 # define APPLICATION_TOKEN "01234567890123456789"
36 
37 # define CONFIG_SCHEMA_VERSION 6
38 # define PROFILE_SCHEMA_VERSION 7
39 # define SYSTEM_NF_SCHEMA_VERSION 1
40 # define USER_NF_SCHEMA_VERSION 5
41 # define LOG_SCHEMA_VERSION 4
42 
43 # define KAA_SYNC_TIMEOUT 60000L
44 
45 
46 
47 typedef struct {
48  const char * name;
49  uint16_t version;
51 
52 # define KAA_EVENT_SCHEMA_VERSIONS_SIZE 2
53 
55 {
56  {
57  /* .name = */ "1ecf"
58  , /* .version = */3
59  },
60  {
61  /* .name = */ "2ecf"
62  , /* .version = */2
63  }
64 };
65 
66 
67 
75 typedef struct {
79 
80 # define KAA_BOOTSTRAP_ACCESS_POINT_COUNT 1
81 
83 {
84  {
85  { 1, 2 },
86  {
87  12345,
88  4,
89  "ABCD"
90  }
91  }
92 };
93 
94 
95 
96 # define KAA_CONFIGURATION_DATA_LENGTH 45
97 
98 static const char KAA_CONFIGURATION_DATA[KAA_CONFIGURATION_DATA_LENGTH] = { 0x34, 0x42, 0x61, 0x73, 0x69, 0x63, 0x20, 0x63, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x73, 0x63, 0x68, 0x65, 0x6D, 0x61, 0x02, 0x20, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };
99 
100 # ifdef __cplusplus
101 } // extern "C"
102 # endif
103 
104 # endif /* KAA_DEFAULTS_H_ */
105 
Identifier used to uniquely represent transport protocol.
Definition: kaa_common.h:69
Common C EP SDK definitions and small utilities.
kaa_transport_protocol_id_t protocol_id
Definition: kaa_defaults.h:76
#define KAA_CONFIGURATION_DATA_LENGTH
Definition: kaa_defaults.h:96
Uses to represent transport-specific connection data to establish connection to Bootstrap servers...
Definition: kaa_defaults.h:75
#define KAA_EVENT_SCHEMA_VERSIONS_SIZE
Definition: kaa_defaults.h:52
#define KAA_BOOTSTRAP_ACCESS_POINT_COUNT
Definition: kaa_defaults.h:80
static const kaa_bootstrap_server_connection_data_t KAA_BOOTSTRAP_ACCESS_POINTS[KAA_BOOTSTRAP_ACCESS_POINT_COUNT]
Definition: kaa_defaults.h:82
Connection parameters used by transport channels to establish connection both to Bootstrap and Operat...
Definition: kaa_common.h:84
static const kaa_events_schema_version_t KAA_EVENT_SCHEMA_VERSIONS[KAA_EVENT_SCHEMA_VERSIONS_SIZE]
Definition: kaa_defaults.h:54
static const char KAA_CONFIGURATION_DATA[KAA_CONFIGURATION_DATA_LENGTH]
Definition: kaa_defaults.h:98