lib: add aliases for Babeltrace structure types
[babeltrace.git] / plugins / utils / dummy / dummy.h
index f2133229317852781d7af2e3b698e695f3d9adb9..833df41e4b7e2890e35bd44fc860f37f28530a0a 100644 (file)
  */
 
 #include <glib.h>
-#include <babeltrace/component/private-component.h>
-#include <babeltrace/component/private-port.h>
-#include <babeltrace/component/port.h>
+#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
+#include <stdbool.h>
 
 struct dummy {
-       GPtrArray *iterators;
+       bt_self_component_port_input_notification_iterator *notif_iter;
 };
 
-enum bt_component_status dummy_init(struct bt_private_component *component,
-               struct bt_value *params, void *init_method_data);
-void dummy_destroy(struct bt_private_component *component);
-enum bt_component_status dummy_accept_port_connection(
-               struct bt_private_component *component,
-               struct bt_private_port *self_port,
-               struct bt_port *other_port);
-enum bt_component_status dummy_consume(struct bt_private_component *component);
+BT_HIDDEN
+enum bt_self_component_status dummy_init(
+               bt_self_component_sink *component,
+               const bt_value *params, void *init_method_data);
+
+BT_HIDDEN
+void dummy_finalize(bt_self_component_sink *component);
+
+BT_HIDDEN
+enum bt_self_component_status dummy_port_connected(
+               bt_self_component_sink *comp,
+               bt_self_component_port_input *self_port,
+               const bt_port_output *other_port);
+
+BT_HIDDEN
+enum bt_self_component_status dummy_consume(
+               bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */
This page took 0.039219 seconds and 4 git commands to generate.