X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Fdummy%2Fdummy.c;h=61cdfe0205324687e1695677841a7471203a1517;hb=5badd463e184894a3bfd5b8db257efc6f92c6374;hp=e0c44c5bffcfd7537c74b39d09ba6f7166b25d9a;hpb=9a6502b6c579bb9371cd8bd8c5064074c80918d4;p=babeltrace.git diff --git a/plugins/utils/dummy/dummy.c b/plugins/utils/dummy/dummy.c index e0c44c5b..61cdfe02 100644 --- a/plugins/utils/dummy/dummy.c +++ b/plugins/utils/dummy/dummy.c @@ -26,6 +26,9 @@ #include #include "dummy.h" +static +const char * const in_port_name = "in"; + void destroy_private_dummy_data(struct dummy *dummy) { bt_self_component_port_input_message_iterator_put_ref(dummy->msg_iter); @@ -77,10 +80,8 @@ end: } BT_HIDDEN -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_self_component_status dummy_graph_is_configured( + bt_self_component_sink *comp) { bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK; struct dummy *dummy; @@ -90,7 +91,8 @@ bt_self_component_status dummy_port_connected( bt_self_component_sink_as_self_component(comp)); BT_ASSERT(dummy); iterator = bt_self_component_port_input_message_iterator_create( - self_port); + bt_self_component_sink_borrow_input_port_by_name(comp, + in_port_name)); if (!iterator) { status = BT_SELF_COMPONENT_STATUS_NOMEM; goto end;