lib: add sink component class's "graph is configured" method
[babeltrace.git] / plugins / utils / dummy / dummy.h
index a0c674e31d4e6d9faca200a89919d329bcc16583..5df1a2dec468f61432f81ee8caf989dc73a237bc 100644 (file)
  */
 
 #include <glib.h>
-#include <babeltrace/component/component.h>
-#include <babeltrace/component/component-port.h>
-#include <babeltrace/component/component-connection.h>
+#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
+#include <stdbool.h>
 
 struct dummy {
-       GPtrArray *iterators;
+       bt_self_component_port_input_message_iterator *msg_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
+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
+bt_self_component_status dummy_graph_is_configured(
+               bt_self_component_sink *comp);
+
+BT_HIDDEN
+bt_self_component_status dummy_consume(
+               bt_self_component_sink *component);
 
 #endif /* BABELTRACE_PLUGINS_UTILS_DUMMY_H */
This page took 0.025422 seconds and 4 git commands to generate.