X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=plugins%2Futils%2Fdummy%2Fdummy.h;h=d6a9bd127e19955c0d3f72ccbb811c58bf11cc05;hb=7b53201cfb06ec02f4203e28458dfbcf53d87988;hp=a0c674e31d4e6d9faca200a89919d329bcc16583;hpb=c2b71c92fc4996516a5d8de9e7511f89b4b522dc;p=babeltrace.git diff --git a/plugins/utils/dummy/dummy.h b/plugins/utils/dummy/dummy.h index a0c674e3..d6a9bd12 100644 --- a/plugins/utils/dummy/dummy.h +++ b/plugins/utils/dummy/dummy.h @@ -24,19 +24,30 @@ */ #include -#include -#include -#include +#include +#include +#include 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, + 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 */