client-c  0.9.0
ext_kaa_failover_strategy.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 EXT_FAILOVER_STRATEGY_H_
18 #define EXT_FAILOVER_STRATEGY_H_
19 
20 #include <stddef.h>
21 #include "../kaa_error.h"
22 #include "../platform/time.h"
23 
24 #define KAA_FAILOVER_RETRY_PERIOD 2
25 #define KAA_BOOTSTRAP_RESPONSE_PERIOD 5
26 
27 typedef enum {
28  KAA_NOOP = 0,
34 
35 typedef enum {
43 
45 
46 typedef struct {
50 
53 
63 
64 #endif /* EXT_FAILOVER_STRATEGY_H_ */
long kaa_time_t
Definition: cc32xx_time.h:23
kaa_failover_strategy_action_t
struct kaa_failover_strategy_t kaa_failover_strategy_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.