client-c  0.8.1
ext_log_delivery_listener.h File Reference

External log delivery listener interfaces. More...

+ This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.

Macro Definition Documentation

#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 Documentation

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.

Parameters
[in,out]contextUser-definied context.
See also
kaa_logging_add_record
Parameters
[in]bucketLog bucket for which event was triggered.

Definition at line 52 of file ext_log_delivery_listener.h.