client-c  0.9.0
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.

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.