struct bt_port *downstream_port);
BT_HIDDEN
-void bt_connection_disconnect_ports(struct bt_connection *conn,
- struct bt_component *comp);
+void bt_connection_disconnect_ports(struct bt_connection *conn);
#endif /* BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H */
/* Disconnect both ports of this port's connection, if any */
if (port->connection) {
- bt_connection_disconnect_ports(port->connection, component);
+ bt_connection_disconnect_ports(port->connection);
}
/* Remove from parent's array of ports (weak refs) */
}
BT_HIDDEN
-void bt_connection_disconnect_ports(struct bt_connection *conn,
- struct bt_component *acting_comp)
+void bt_connection_disconnect_ports(struct bt_connection *conn)
{
struct bt_component *downstream_comp = NULL;
struct bt_component *upstream_comp = NULL;
conn->upstream_port = NULL;
}
- if (downstream_comp && downstream_comp != acting_comp) {
+ if (downstream_comp) {
bt_component_port_disconnected(downstream_comp,
downstream_port);
}
- if (upstream_comp && upstream_comp != acting_comp) {
+ if (upstream_comp) {
bt_component_port_disconnected(upstream_comp, upstream_port);
}
}
if (port->connection) {
- bt_connection_disconnect_ports(port->connection, NULL);
+ bt_connection_disconnect_ports(port->connection);
}
end:
bt_component_from_private(private_component), index));
}
-struct bt_private_port *bt_private_component_sink_get_default_private_input_port(
+struct bt_private_port *bt_private_component_sink_get_default_input_private_port(
struct bt_private_component *private_component)
{
return bt_private_port_from_port(