Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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_ */
kaa_time_t retry_period
Definition: ext_kaa_failover_strategy.h:48
kaa_failover_reason
Definition: ext_kaa_failover_strategy.h:35
Definition: ext_kaa_failover_strategy.h:28
Definition: ext_kaa_failover_strategy.h:39
kaa_failover_strategy_action_t
Definition: ext_kaa_failover_strategy.h:27
Definition: ext_kaa_failover_strategy.h:40
Definition: ext_kaa_failover_strategy.h:46
long kaa_time_t
Definition: time.h:23
Kaa error codes.
Definition: ext_kaa_failover_strategy.h:31
struct kaa_failover_strategy_t kaa_failover_strategy_t
Definition: ext_kaa_failover_strategy.h:52
Definition: ext_kaa_failover_strategy.h:36
kaa_failover_strategy_action_t action
Definition: ext_kaa_failover_strategy.h:47
kaa_failover_decision_t kaa_failover_strategy_on_failover(void *self, kaa_failover_reason reason)
Returns the decision, depending on the failover reason.
Definition: ext_kaa_failover_strategy.h:41
Definition: ext_kaa_failover_strategy.h:42
Definition: ext_kaa_failover_strategy.h:29
Definition: ext_kaa_failover_strategy.h:37
Definition: ext_kaa_failover_strategy.h:32
Definition: ext_kaa_failover_strategy.h:38
Definition: ext_kaa_failover_strategy.h:30