switch (current_test) {
case TEST_SRC_ADDS_PORT_IN_PORT_CONNECTED:
port = bt_private_component_source_add_output_private_port(
- private_component, "hello");
+ private_component, "hello", NULL);
assert(port);
bt_put(port);
break;
assert(sink_def_port);
conn = bt_graph_connect_ports(graph, src_def_port, sink_def_port);
assert(conn);
- src_hello_port = bt_component_source_get_output_port(src, "hello");
+ src_hello_port = bt_component_source_get_output_port_by_name(src,
+ "hello");
assert(src_hello_port);
/* We're supposed to have 6 events */