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 | ||
d4393e08 | 27 | #include <stdint.h> |
d94d92ac | 28 | #include <babeltrace/babeltrace.h> |
0cb31e39 | 29 | #include <babeltrace/babeltrace-internal.h> |
0cb31e39 | 30 | |
958f7d11 | 31 | BT_HIDDEN |
d94d92ac | 32 | enum bt_self_component_status muxer_init( |
b19ff26f PP |
33 | bt_self_component_filter *self_comp, |
34 | const bt_value *params, void *init_data); | |
958f7d11 PP |
35 | |
36 | BT_HIDDEN | |
b19ff26f | 37 | void muxer_finalize(bt_self_component_filter *self_comp); |
958f7d11 PP |
38 | |
39 | BT_HIDDEN | |
d94d92ac | 40 | enum bt_self_notification_iterator_status muxer_notif_iter_init( |
b19ff26f PP |
41 | bt_self_notification_iterator *self_notif_iter, |
42 | bt_self_component_filter *self_comp, | |
43 | bt_self_component_port_output *self_port); | |
958f7d11 PP |
44 | |
45 | BT_HIDDEN | |
46 | void muxer_notif_iter_finalize( | |
b19ff26f | 47 | bt_self_notification_iterator *self_notif_iter); |
958f7d11 PP |
48 | |
49 | BT_HIDDEN | |
d94d92ac | 50 | enum bt_self_notification_iterator_status muxer_notif_iter_next( |
b19ff26f | 51 | bt_self_notification_iterator *self_notif_iter, |
0d72b8c3 | 52 | bt_notification_array_const notifs, uint64_t capacity, |
d4393e08 | 53 | uint64_t *count); |
958f7d11 PP |
54 | |
55 | BT_HIDDEN | |
d94d92ac | 56 | enum bt_self_component_status muxer_input_port_connected( |
b19ff26f PP |
57 | bt_self_component_filter *comp, |
58 | bt_self_component_port_input *self_port, | |
59 | const bt_port_output *other_port); | |
958f7d11 PP |
60 | |
61 | BT_HIDDEN | |
d94d92ac | 62 | void muxer_input_port_disconnected( |
b19ff26f PP |
63 | bt_self_component_filter *self_component, |
64 | bt_self_component_port_input *self_port); | |
0cb31e39 | 65 | |
958f7d11 | 66 | #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */ |