client-c  0.8.1
ext_kaa_failover_strategy.h
Go to the documentation of this file.
1 
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 {
41 
42 typedef struct {
46 
56 
57 #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.