client-c  0.8.1
ext_log_delivery_listener.h
Go to the documentation of this file.
1 
26 #ifndef EXT_LOG_DELIVERY_LISTENER_
27 #define EXT_LOG_DELIVERY_LISTENER_
28 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 typedef struct {
39  size_t log_count;
40  uint16_t bucket_id;
42 
52 typedef void (*kaa_log_event_fn)(void *context, const kaa_log_bucket_info_t *bucket);
53 
55 typedef struct {
59  void *ctx;
61 
63 #define KAA_LOG_EMPTY_LISTENERS ((kaa_log_delivery_listener_t){NULL, NULL, NULL, NULL})
64 
65 #ifdef __cplusplus
66 } /* extern "C" */
67 #endif
68 
69 
70 
71 #endif // EXT_LOG_DELIVERY_LISTENER_
void(* kaa_log_event_fn)(void *context, const kaa_log_bucket_info_t *bucket)
Event handler type.
Log bucket information structure. One or more log records are aggregated into the single bucket...