*/
#include <glib.h>
-#include <babeltrace/graph/private-component.h>
-#include <babeltrace/graph/private-port.h>
-#include <babeltrace/graph/notification-iterator.h>
-#include <babeltrace/graph/port.h>
+#include <babeltrace/babeltrace.h>
+#include <babeltrace/babeltrace-internal.h>
#include <stdbool.h>
struct dummy {
- struct bt_notification_iterator *notif_iter;
- bool error;
+ struct 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_finalize(struct bt_private_component *component);
-void dummy_port_connected(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(
+ 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,
+ const 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 */