lib: fully configure graph (add components, connect ports), then run
[babeltrace.git] / plugins / utils / muxer / muxer.h
index b7e05ba3a0af84081c887e434e55b3f06719988b..1e706c0a0dc2c65683bd25a8ba1a792492a22d43 100644 (file)
  * SOFTWARE.
  */
 
+#include <stdint.h>
+#include <babeltrace/babeltrace.h>
 #include <babeltrace/babeltrace-internal.h>
 
 BT_HIDDEN
-enum bt_component_status muxer_init(
-               struct bt_private_component *priv_comp,
-               struct bt_value *params, void *init_data);
+bt_self_component_status muxer_init(
+               bt_self_component_filter *self_comp,
+               const bt_value *params, void *init_data);
 
 BT_HIDDEN
-void muxer_finalize(
-               struct bt_private_component *priv_comp);
+void muxer_finalize(bt_self_component_filter *self_comp);
 
 BT_HIDDEN
-enum bt_notification_iterator_status muxer_notif_iter_init(
-               struct bt_private_connection_private_notification_iterator *priv_notif_iter,
-               struct bt_private_port *priv_port);
+bt_self_message_iterator_status muxer_msg_iter_init(
+               bt_self_message_iterator *self_msg_iter,
+               bt_self_component_filter *self_comp,
+               bt_self_component_port_output *self_port);
 
 BT_HIDDEN
-void muxer_notif_iter_finalize(
-               struct bt_private_connection_private_notification_iterator *priv_notif_iter);
+void muxer_msg_iter_finalize(
+               bt_self_message_iterator *self_msg_iter);
 
 BT_HIDDEN
-struct bt_notification_iterator_next_method_return muxer_notif_iter_next(
-               struct bt_private_connection_private_notification_iterator *priv_notif_iter);
+bt_self_message_iterator_status muxer_msg_iter_next(
+               bt_self_message_iterator *self_msg_iter,
+               bt_message_array_const msgs, uint64_t capacity,
+               uint64_t *count);
 
 BT_HIDDEN
-void muxer_port_connected(
-               struct bt_private_component *priv_comp,
-               struct bt_private_port *self_private_port,
-               struct bt_port *other_port);
-
-BT_HIDDEN
-void muxer_port_disconnected(
-               struct bt_private_component *priv_comp,
-               struct bt_private_port *priv_port);
+bt_self_component_status muxer_input_port_connected(
+               bt_self_component_filter *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_MUXER_H */
This page took 0.028321 seconds and 4 git commands to generate.