Kaa client C SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
kaa_logging_private.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 #ifndef KAA_LOGGING_PRIVATE_H
17 #define KAA_LOGGING_PRIVATE_H
18 
19 #include <kaa_logging.h>
20 #include <kaa_status.h>
21 #include <kaa_status.h>
22 #include <kaa_channel_manager.h>
23 #include <utilities/kaa_log.h>
24 #include <kaa_platform_utils.h>
25 
27  kaa_channel_manager_t *channel_manager, kaa_logger_t *logger);
30 
34 kaa_error_t kaa_logging_handle_server_sync(kaa_log_collector_t *self, kaa_platform_message_reader_t *reader, uint16_t extension_options, size_t extension_length);
35 
39 
40 kaa_error_t ext_unlimited_log_storage_create(void **log_storage_context_p, kaa_logger_t *logger);
41 kaa_error_t ext_limited_log_storage_create(void **log_storage_context_p, kaa_logger_t *logger,
42  size_t storage_size, size_t percent_to_delete);
44 
45 #endif /* KAA_LOGGING_PRIVATE_H */
kaa_error_t kaa_logging_request_serialize(kaa_log_collector_t *self, kaa_platform_message_writer_t *writer)
bool ext_log_upload_strategy_is_timeout_strategy(void *strategy)
User defined channels manager for Kaa C SDK.
Definition: kaa_platform_utils.h:40
kaa_error_t ext_unlimited_log_storage_create(void **log_storage_context_p, kaa_logger_t *logger)
kaa_error_t kaa_logging_request_get_size(kaa_log_collector_t *self, size_t *expected_size)
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t kaa_logging_handle_server_sync(kaa_log_collector_t *self, kaa_platform_message_reader_t *reader, uint16_t extension_options, size_t extension_length)
kaa_error_t kaa_logging_need_logging_resync(kaa_log_collector_t *self, bool *result)
Definition: kaa_platform_utils.h:33
kaa_error_t ext_limited_log_storage_create(void **log_storage_context_p, kaa_logger_t *logger, size_t storage_size, size_t percent_to_delete)
struct kaa_logger_t kaa_logger_t
Definition: kaa_log.h:68
Kaa data logging subsystem API.
void ext_log_upload_timeout(kaa_log_collector_t *self)
void kaa_log_collector_destroy(kaa_log_collector_t *self)
struct kaa_channel_manager_t kaa_channel_manager_t
Definition: kaa_channel_manager.h:42
kaa_error_t kaa_log_collector_create(kaa_log_collector_t **log_collector_p, kaa_status_t *status, kaa_channel_manager_t *channel_manager, kaa_logger_t *logger)
Simple logger for Kaa C Endpoint.
struct kaa_log_collector_t kaa_log_collector_t
Definition: kaa_logging.h:42
Definition: kaa_status.h:36
kaa_error_t ext_log_storage_destroy(void *context)