1 #ifndef BABELTRACE_PLUGINS_UTILS_MUXER_H
2 #define BABELTRACE_PLUGINS_UTILS_MUXER_H
5 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
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:
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
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
28 #include <babeltrace2/babeltrace.h>
29 #include "common/macros.h"
32 bt_self_component_status
muxer_init(
33 bt_self_component_filter
*self_comp
,
34 const bt_value
*params
, void *init_data
);
37 void muxer_finalize(bt_self_component_filter
*self_comp
);
40 bt_self_message_iterator_status
muxer_msg_iter_init(
41 bt_self_message_iterator
*self_msg_iter
,
42 bt_self_component_filter
*self_comp
,
43 bt_self_component_port_output
*self_port
);
46 void muxer_msg_iter_finalize(
47 bt_self_message_iterator
*self_msg_iter
);
50 bt_self_message_iterator_status
muxer_msg_iter_next(
51 bt_self_message_iterator
*self_msg_iter
,
52 bt_message_array_const msgs
, uint64_t capacity
,
56 bt_self_component_status
muxer_input_port_connected(
57 bt_self_component_filter
*comp
,
58 bt_self_component_port_input
*self_port
,
59 const bt_port_output
*other_port
);
62 bt_bool
muxer_msg_iter_can_seek_beginning(
63 bt_self_message_iterator
*message_iterator
);
66 bt_self_message_iterator_status
muxer_msg_iter_seek_beginning(
67 bt_self_message_iterator
*message_iterator
);
69 #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */