2 * SPDX-License-Identifier: MIT
4 * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 * Copyright 2017 Philippe Proulx <pproulx@efficios.com>
8 #ifndef BABELTRACE_PLUGINS_UTILS_MUXER_H
9 #define BABELTRACE_PLUGINS_UTILS_MUXER_H
12 #include <babeltrace2/babeltrace.h>
13 #include "common/macros.h"
15 bt_component_class_initialize_method_status
muxer_init(
16 bt_self_component_filter
*self_comp
,
17 bt_self_component_filter_configuration
*config
,
18 const bt_value
*params
, void *init_data
);
20 void muxer_finalize(bt_self_component_filter
*self_comp
);
22 bt_message_iterator_class_initialize_method_status
muxer_msg_iter_init(
23 bt_self_message_iterator
*self_msg_iter
,
24 bt_self_message_iterator_configuration
*config
,
25 bt_self_component_port_output
*self_port
);
27 void muxer_msg_iter_finalize(
28 bt_self_message_iterator
*self_msg_iter
);
30 bt_message_iterator_class_next_method_status
muxer_msg_iter_next(
31 bt_self_message_iterator
*self_msg_iter
,
32 bt_message_array_const msgs
, uint64_t capacity
,
35 bt_component_class_port_connected_method_status
muxer_input_port_connected(
36 bt_self_component_filter
*comp
,
37 bt_self_component_port_input
*self_port
,
38 const bt_port_output
*other_port
);
40 bt_message_iterator_class_can_seek_beginning_method_status
41 muxer_msg_iter_can_seek_beginning(
42 bt_self_message_iterator
*message_iterator
, bt_bool
*can_seek
);
44 bt_message_iterator_class_seek_beginning_method_status
muxer_msg_iter_seek_beginning(
45 bt_self_message_iterator
*message_iterator
);
47 #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */