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