client-c
0.8.1
|
External log delivery listener interfaces. More...
Go to the source code of this file.
Classes | |
struct | kaa_log_bucket_info_t |
Log bucket information structure. One or more log records are aggregated into the single bucket. More... | |
struct | kaa_log_delivery_listener_t |
Macros | |
#define | KAA_LOG_EMPTY_LISTENERS ((kaa_log_delivery_listener_t){NULL, NULL, NULL, NULL}) |
Typedefs | |
typedef void(* | kaa_log_event_fn )(void *context, const kaa_log_bucket_info_t *bucket) |
Event handler type. More... | |
External log delivery listener interfaces.
Copyright 2014-2016 CyberVision, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Listener callbacks could be used to notify about log-releated events: success, fail or timeout.
Definition in file ext_log_delivery_listener.h.
#define KAA_LOG_EMPTY_LISTENERS ((kaa_log_delivery_listener_t){NULL, NULL, NULL, NULL}) |
Special macro that can be used to disable event handling.
Definition at line 63 of file ext_log_delivery_listener.h.
typedef void(* kaa_log_event_fn)(void *context, const kaa_log_bucket_info_t *bucket) |
Event handler type.
Bucket information can be used to retrieve a amount of logs that are pending to upload.
[in,out] | context | User-definied context. |
[in] | bucket | Log bucket for which event was triggered. |
Definition at line 52 of file ext_log_delivery_listener.h.