client-c  0.7.4
ext_kaa_failover_strategy.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright 2014-2015 CyberVision, Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef EXT_FAILOVER_STRATEGY_H_
19 #define EXT_FAILOVER_STRATEGY_H_
20 
21 #include <stddef.h>
22 #include "../kaa_error.h"
23 #include "../platform/time.h"
24 
25 #define KAA_FAILOVER_RETRY_PERIOD 2
26 #define KAA_BOOTSTRAP_RESPONSE_PERIOD 5
27 
28 typedef enum {
29  KAA_NOOP = 0,
35 
36 typedef enum {
42 
43 typedef struct {
47 
57 
58 #endif /* EXT_FAILOVER_STRATEGY_H_ */
long kaa_time_t
Definition: cc32xx_time.h:23
kaa_failover_strategy_action_t
kaa_failover_strategy_action_t action
kaa_failover_decision_t kaa_failover_strategy_on_failover(void *self, kaa_failover_reason reason)
Returns the decision, depending on the failover reason.