24 #ifndef EXT_LOG_UPLOAD_STRATEGY_H_
25 #define EXT_LOG_UPLOAD_STRATEGY_H_
27 #include "../platform/ext_log_storage.h"
kaa_error_t ext_log_upload_strategy_on_timeout(void *context)
Handles timeout of a log delivery.
void ext_log_upload_strategy_destroy(void *context)
Destroys the instance of the log upload strategy.
logging_delivery_error_code_t
ext_log_upload_decision_t
size_t ext_log_upload_strategy_get_timeout(void *context)
The maximum time to wait a log delivery response.
kaa_error_t ext_log_upload_strategy_create(struct kaa_context_s *context, void **strategy_p, uint8_t type)
size_t ext_log_upload_strategy_get_max_parallel_uploads(void *context)
Max amount of log batches allowed to be uploaded parallel.
kaa_error_t ext_log_upload_strategy_on_failure(void *context, logging_delivery_error_code_t error_code)
Handles failure of a log delivery.
ext_log_upload_decision_t ext_log_upload_strategy_decide(void *context, const void *log_storage_context)
Makes a decision whether to upload logs or cleanup the storage.