Commit | Line | Data |
---|---|---|
cab3f160 | 1 | /* |
0235b0db | 2 | * SPDX-License-Identifier: MIT |
cab3f160 JG |
3 | * |
4 | * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
5 | * | |
0235b0db | 6 | * BabelTrace - Trace Trimmer Plug-in |
cab3f160 JG |
7 | */ |
8 | ||
0235b0db MJ |
9 | #ifndef BABELTRACE_PLUGINS_UTILS_TRIMMER_H |
10 | #define BABELTRACE_PLUGINS_UTILS_TRIMMER_H | |
11 | ||
91d81473 | 12 | #include "common/macros.h" |
3fadfbc0 | 13 | #include <babeltrace2/babeltrace.h> |
cab3f160 | 14 | |
fca1d0f5 PP |
15 | #ifdef __cplusplus |
16 | extern "C" { | |
17 | #endif | |
18 | ||
7de0e49a PP |
19 | void trimmer_finalize(bt_self_component_filter *self_comp); |
20 | ||
21a9f056 | 21 | bt_component_class_initialize_method_status trimmer_init( |
59225a3e SM |
22 | bt_self_component_filter *self_comp, |
23 | bt_self_component_filter_configuration *config, | |
7de0e49a PP |
24 | const bt_value *params, void *init_data); |
25 | ||
a3f0c7db | 26 | bt_message_iterator_class_initialize_method_status trimmer_msg_iter_init( |
7de0e49a | 27 | bt_self_message_iterator *self_msg_iter, |
8d8b141d | 28 | bt_self_message_iterator_configuration *config, |
7de0e49a PP |
29 | bt_self_component_port_output *port); |
30 | ||
a3f0c7db | 31 | bt_message_iterator_class_next_method_status trimmer_msg_iter_next( |
7de0e49a PP |
32 | bt_self_message_iterator *self_msg_iter, |
33 | bt_message_array_const msgs, uint64_t capacity, | |
34 | uint64_t *count); | |
35 | ||
7de0e49a | 36 | void trimmer_msg_iter_finalize(bt_self_message_iterator *self_msg_iter); |
e0dfa761 | 37 | |
fca1d0f5 PP |
38 | #ifdef __cplusplus |
39 | } | |
40 | #endif | |
41 | ||
e0dfa761 | 42 | #endif /* BABELTRACE_PLUGINS_UTILS_TRIMMER_H */ |