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> |
0cb31e39 | 28 | #include <babeltrace/babeltrace-internal.h> |
0cb31e39 | 29 | |
958f7d11 PP |
30 | BT_HIDDEN |
31 | enum bt_component_status muxer_init( | |
32 | struct bt_private_component *priv_comp, | |
33 | struct bt_value *params, void *init_data); | |
34 | ||
35 | BT_HIDDEN | |
36 | void muxer_finalize( | |
37 | struct bt_private_component *priv_comp); | |
38 | ||
39 | BT_HIDDEN | |
40 | enum bt_notification_iterator_status muxer_notif_iter_init( | |
90157d89 | 41 | struct bt_private_connection_private_notification_iterator *priv_notif_iter, |
958f7d11 PP |
42 | struct bt_private_port *priv_port); |
43 | ||
44 | BT_HIDDEN | |
45 | void muxer_notif_iter_finalize( | |
90157d89 | 46 | struct bt_private_connection_private_notification_iterator *priv_notif_iter); |
958f7d11 PP |
47 | |
48 | BT_HIDDEN | |
d4393e08 PP |
49 | enum bt_notification_iterator_status muxer_notif_iter_next( |
50 | struct bt_private_connection_private_notification_iterator *priv_notif_iter, | |
51 | bt_notification_array notifs, uint64_t capacity, | |
52 | uint64_t *count); | |
958f7d11 PP |
53 | |
54 | BT_HIDDEN | |
55 | void muxer_port_connected( | |
56 | struct bt_private_component *priv_comp, | |
57 | struct bt_private_port *self_private_port, | |
58 | struct bt_port *other_port); | |
59 | ||
60 | BT_HIDDEN | |
61 | void muxer_port_disconnected( | |
62 | struct bt_private_component *priv_comp, | |
63 | struct bt_private_port *priv_port); | |
0cb31e39 | 64 | |
958f7d11 | 65 | #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */ |