client-c  0.6.3
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 <stdint.h>
27 # include "kaa_common.h"
28 
29 # ifdef __cplusplus
30 extern "C" {
31 # endif
32 
33 # define BUILD_VERSION "0.6.1-SNAPSHOT"
34 # define BUILD_COMMIT_HASH "N/A"
35 
36 # define APPLICATION_TOKEN "01234567890123456789"
37 
38 # define CONFIG_SCHEMA_VERSION 6
39 # define PROFILE_SCHEMA_VERSION 7
40 # define SYSTEM_NF_SCHEMA_VERSION 1
41 # define USER_NF_SCHEMA_VERSION 5
42 # define LOG_SCHEMA_VERSION 4
43 
44 # define KAA_SYNC_TIMEOUT 60000L
45 
46 
47 
48 typedef struct {
49  const char * name;
50  uint16_t version;
52 
53 # define KAA_EVENT_SCHEMA_VERSIONS_SIZE 2
54 
56 {
57  {
58  /* .name = */ "1ecf"
59  , /* .version = */3
60  },
61  {
62  /* .name = */ "2ecf"
63  , /* .version = */2
64  }
65 };
66 
67 
68 
76 typedef struct {
80 
81 # define KAA_BOOTSTRAP_ACCESS_POINT_COUNT 1
82 
84 {
85  {
86  { 1, 2 },
87  {
88  12345,
89  4,
90  "ABCD"
91  }
92  }
93 };
94 
95 # ifdef __cplusplus
96 } // extern "C"
97 # endif
98 
99 # endif /* KAA_DEFAULTS_H_ */
100 
Identifier used to uniquely represent transport protocol.
Definition: kaa_common.h:68
Common C EP SDK definitions and small utilities.
kaa_transport_protocol_id_t protocol_id
Definition: kaa_defaults.h:77
Uses to represent transport-specific connection data to establish connection to Bootstrap servers...
Definition: kaa_defaults.h:76
#define KAA_EVENT_SCHEMA_VERSIONS_SIZE
Definition: kaa_defaults.h:53
#define KAA_BOOTSTRAP_ACCESS_POINT_COUNT
Definition: kaa_defaults.h:81
static const kaa_bootstrap_server_connection_data_t KAA_BOOTSTRAP_ACCESS_POINTS[KAA_BOOTSTRAP_ACCESS_POINT_COUNT]
Definition: kaa_defaults.h:83
Connection parameters used by transport channels to establish connection both to Bootstrap and Operat...
Definition: kaa_common.h:77
static const kaa_events_schema_version_t KAA_EVENT_SCHEMA_VERSIONS[KAA_EVENT_SCHEMA_VERSIONS_SIZE]
Definition: kaa_defaults.h:55