flt.utils.muxer: use a heap to sort iterators (also: rewrite in C++)
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 *
6 * BabelTrace - Trace Trimmer Plug-in
7 */
8
9 #ifndef BABELTRACE_PLUGINS_UTILS_TRIMMER_H
10 #define BABELTRACE_PLUGINS_UTILS_TRIMMER_H
11
12 #include "common/macros.h"
13 #include <babeltrace2/babeltrace.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 void trimmer_finalize(bt_self_component_filter *self_comp);
20
21 bt_component_class_initialize_method_status trimmer_init(
22 bt_self_component_filter *self_comp,
23 bt_self_component_filter_configuration *config,
24 const bt_value *params, void *init_data);
25
26 bt_message_iterator_class_initialize_method_status trimmer_msg_iter_init(
27 bt_self_message_iterator *self_msg_iter,
28 bt_self_message_iterator_configuration *config,
29 bt_self_component_port_output *port);
30
31 bt_message_iterator_class_next_method_status trimmer_msg_iter_next(
32 bt_self_message_iterator *self_msg_iter,
33 bt_message_array_const msgs, uint64_t capacity,
34 uint64_t *count);
35
36 void trimmer_msg_iter_finalize(bt_self_message_iterator *self_msg_iter);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_H */
This page took 0.033244 seconds and 4 git commands to generate.