X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Futils%2Fcounter%2Fcounter.c;h=ec0a8dba8633a83641254f9b555ae6a2930fba65;hb=1043fdeac7af547a48ff5d938851dad9390aea4f;hp=fa75b6aeb5e3b7d4784dc292a8d3343339c841b5;hpb=09f603c6b62f388e3095dd3bfc0ad1c6194be7b4;p=babeltrace.git diff --git a/plugins/utils/counter/counter.c b/plugins/utils/counter/counter.c index fa75b6ae..ec0a8dba 100644 --- a/plugins/utils/counter/counter.c +++ b/plugins/utils/counter/counter.c @@ -39,6 +39,9 @@ } \ } while (0) +static +const char * const in_port_name = "in"; + static uint64_t get_total_count(struct counter *counter) { @@ -176,10 +179,8 @@ end: } BT_HIDDEN -bt_self_component_status counter_port_connected( - bt_self_component_sink *comp, - bt_self_component_port_input *self_port, - const bt_port_output *other_port) +bt_self_component_status counter_graph_is_configured( + bt_self_component_sink *comp) { bt_self_component_status status = BT_SELF_COMPONENT_STATUS_OK; struct counter *counter; @@ -189,7 +190,8 @@ bt_self_component_status counter_port_connected( bt_self_component_sink_as_self_component(comp)); BT_ASSERT(counter); 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;