Commit | Line | Data |
---|---|---|
958f7d11 PP |
1 | #ifndef BABELTRACE_PLUGINS_UTILS_MUXER_H |
2 | #define BABELTRACE_PLUGINS_UTILS_MUXER_H | |
0cb31e39 JG |
3 | |
4 | /* | |
0cb31e39 | 5 | * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
958f7d11 | 6 | * Copyright 2017 Philippe Proulx <pproulx@efficios.com> |
0cb31e39 JG |
7 | * |
8 | * Permission is hereby granted, free of charge, to any person obtaining a copy | |
9 | * of this software and associated documentation files (the "Software"), to deal | |
10 | * in the Software without restriction, including without limitation the rights | |
11 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
12 | * copies of the Software, and to permit persons to whom the Software is | |
13 | * furnished to do so, subject to the following conditions: | |
14 | * | |
15 | * The above copyright notice and this permission notice shall be included in | |
16 | * all copies or substantial portions of the Software. | |
17 | * | |
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
24 | * SOFTWARE. | |
25 | */ | |
26 | ||
3fd7b79d | 27 | #include <stdint.h> |
71c5da58 | 28 | #include <babeltrace2/babeltrace.h> |
85e7137b | 29 | #include "common/macros.h" |
0cb31e39 | 30 | |
958f7d11 | 31 | BT_HIDDEN |
4175c1d5 | 32 | bt_component_class_initialize_method_status muxer_init( |
8eee8ea2 | 33 | bt_self_component_filter *self_comp, |
e3250e61 | 34 | bt_self_component_filter_configuration *config, |
8eee8ea2 | 35 | const bt_value *params, void *init_data); |
958f7d11 PP |
36 | |
37 | BT_HIDDEN | |
8eee8ea2 | 38 | void muxer_finalize(bt_self_component_filter *self_comp); |
958f7d11 PP |
39 | |
40 | BT_HIDDEN | |
4175c1d5 | 41 | bt_component_class_message_iterator_initialize_method_status muxer_msg_iter_init( |
b09a5592 | 42 | bt_self_message_iterator *self_msg_iter, |
9415de1c | 43 | bt_self_message_iterator_configuration *config, |
8eee8ea2 PP |
44 | bt_self_component_filter *self_comp, |
45 | bt_self_component_port_output *self_port); | |
958f7d11 PP |
46 | |
47 | BT_HIDDEN | |
b09a5592 PP |
48 | void muxer_msg_iter_finalize( |
49 | bt_self_message_iterator *self_msg_iter); | |
958f7d11 PP |
50 | |
51 | BT_HIDDEN | |
fb25b9e3 | 52 | bt_component_class_message_iterator_next_method_status muxer_msg_iter_next( |
b09a5592 PP |
53 | bt_self_message_iterator *self_msg_iter, |
54 | bt_message_array_const msgs, uint64_t capacity, | |
3fd7b79d | 55 | uint64_t *count); |
958f7d11 PP |
56 | |
57 | BT_HIDDEN | |
fb25b9e3 | 58 | bt_component_class_port_connected_method_status muxer_input_port_connected( |
8eee8ea2 PP |
59 | bt_self_component_filter *comp, |
60 | bt_self_component_port_input *self_port, | |
61 | const bt_port_output *other_port); | |
958f7d11 | 62 | |
c9d3ff42 | 63 | BT_HIDDEN |
9e8e8b43 SM |
64 | bt_component_class_message_iterator_can_seek_beginning_method_status |
65 | muxer_msg_iter_can_seek_beginning( | |
66 | bt_self_message_iterator *message_iterator, bt_bool *can_seek); | |
c9d3ff42 PP |
67 | |
68 | BT_HIDDEN | |
fb25b9e3 | 69 | bt_component_class_message_iterator_seek_beginning_method_status muxer_msg_iter_seek_beginning( |
c9d3ff42 PP |
70 | bt_self_message_iterator *message_iterator); |
71 | ||
958f7d11 | 72 | #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */ |