lib: graph: add "self" and some "private" APIs
[babeltrace.git] / plugins / utils / muxer / muxer.h
CommitLineData
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 31BT_HIDDEN
d94d92ac
PP
32enum bt_self_component_status muxer_init(
33 struct bt_self_component_filter *self_comp,
958f7d11
PP
34 struct bt_value *params, void *init_data);
35
36BT_HIDDEN
d94d92ac 37void muxer_finalize(struct bt_self_component_filter *self_comp);
958f7d11
PP
38
39BT_HIDDEN
d94d92ac
PP
40enum bt_self_notification_iterator_status muxer_notif_iter_init(
41 struct bt_self_notification_iterator *self_notif_iter,
42 struct bt_self_component_filter *self_comp,
43 struct bt_self_component_port_output *self_port);
958f7d11
PP
44
45BT_HIDDEN
46void muxer_notif_iter_finalize(
d94d92ac 47 struct bt_self_notification_iterator *self_notif_iter);
958f7d11
PP
48
49BT_HIDDEN
d94d92ac
PP
50enum bt_self_notification_iterator_status muxer_notif_iter_next(
51 struct bt_self_notification_iterator *self_notif_iter,
d4393e08
PP
52 bt_notification_array notifs, uint64_t capacity,
53 uint64_t *count);
958f7d11
PP
54
55BT_HIDDEN
d94d92ac
PP
56enum bt_self_component_status muxer_input_port_connected(
57 struct bt_self_component_filter *comp,
58 struct bt_self_component_port_input *self_port,
59 struct bt_port_output *other_port);
958f7d11
PP
60
61BT_HIDDEN
d94d92ac
PP
62void muxer_input_port_disconnected(
63 struct bt_self_component_filter *self_component,
64 struct bt_self_component_port_input *self_port);
0cb31e39 65
958f7d11 66#endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */
This page took 0.0404 seconds and 4 git commands to generate.