X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fgraph%2Fconnection.c;h=743553b96d0a4d6c0aeec942640c77c17218d97b;hb=fbd8a4e0144aa7777bedcd8c05daec61d594634d;hp=df25867602b5deccf01c693ea9c86d3c8cb41404;hpb=1906e012b741e9fea75e778ffaecffbf79ecc0fc;p=babeltrace.git diff --git a/src/lib/graph/connection.c b/src/lib/graph/connection.c index df258676..743553b9 100644 --- a/src/lib/graph/connection.c +++ b/src/lib/graph/connection.c @@ -205,12 +205,12 @@ void bt_connection_end(struct bt_connection *conn, bool try_remove_from_graph) * which is on graph destruction. */ for (i = 0; i < conn->iterators->len; i++) { - struct bt_self_component_port_input_message_iterator *iterator = + struct bt_message_iterator *iterator = g_ptr_array_index(conn->iterators, i); BT_LIB_LOGD("Finalizing message iterator created by " "this ended connection: %![iter-]+i", iterator); - bt_self_component_port_input_message_iterator_try_finalize( + bt_message_iterator_try_finalize( iterator); /* @@ -218,7 +218,7 @@ void bt_connection_end(struct bt_connection *conn, bool try_remove_from_graph) * from this connection's iterators on destruction * because this connection won't exist anymore. */ - bt_self_component_port_input_message_iterator_set_connection( + bt_message_iterator_set_connection( iterator, NULL); } @@ -245,7 +245,7 @@ const struct bt_port_input *bt_connection_borrow_downstream_port_const( BT_HIDDEN void bt_connection_remove_iterator(struct bt_connection *conn, - struct bt_self_component_port_input_message_iterator *iterator) + struct bt_message_iterator *iterator) { g_ptr_array_remove(conn->iterators, iterator); BT_LIB_LOGD("Removed message iterator from connection: "