lib: make values API const-correct
[babeltrace.git] / plugins / utils / dummy / dummy.h
index 35e5af67315ddef56cde25a4257cdb7e950928af..06fcc0e82cd1928ea350f289aa61b694fcba272a 100644 (file)
  */
 
 #include <glib.h>
-#include <babeltrace/component/component.h>
-#include <babeltrace/component/port.h>
-#include <babeltrace/component/connection.h>
+#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
+#include <stdbool.h>
 
 struct dummy {
-       GPtrArray *iterators;
+       struct bt_self_component_port_input_notification_iterator *notif_iter;
 };
 
-enum bt_component_status dummy_init(struct bt_component *component,
-               struct bt_value *params, void *init_method_data);
-void dummy_destroy(struct bt_component *component);
-enum bt_component_status dummy_new_connection(struct bt_port *own_port,
-               struct bt_connection *connection);
-enum bt_component_status dummy_consume(struct bt_component *component);
+BT_HIDDEN
+enum bt_self_component_status dummy_init(
+               struct bt_self_component_sink *component,
+               const struct bt_value *params, void *init_method_data);
+
+BT_HIDDEN
+void dummy_finalize(struct bt_self_component_sink *component);
+
+BT_HIDDEN
+enum bt_self_component_status dummy_port_connected(
+               struct bt_self_component_sink *comp,
+               struct bt_self_component_port_input *self_port,
+               struct bt_port_output *other_port);
+
+BT_HIDDEN
+enum bt_self_component_status dummy_consume(
+               struct bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */
This page took 0.027466 seconds and 4 git commands to generate.