try_remove_connection_from_graph(connection);
}
-BT_HIDDEN
struct bt_connection *bt_connection_create(struct bt_graph *graph,
struct bt_port *upstream_port,
struct bt_port *downstream_port)
return connection;
}
-BT_HIDDEN
void bt_connection_end(struct bt_connection *conn, bool try_remove_from_graph)
{
struct bt_port *downstream_port = conn->downstream_port;
}
}
+BT_EXPORT
const struct bt_port_output *bt_connection_borrow_upstream_port_const(
const struct bt_connection *connection)
{
return (void *) connection->upstream_port;
}
+BT_EXPORT
const struct bt_port_input *bt_connection_borrow_downstream_port_const(
const struct bt_connection *connection)
{
return (void *) connection->downstream_port;
}
-BT_HIDDEN
void bt_connection_remove_iterator(struct bt_connection *conn,
struct bt_message_iterator *iterator)
{
try_remove_connection_from_graph(conn);
}
+BT_EXPORT
void bt_connection_get_ref(const struct bt_connection *connection)
{
bt_object_get_ref(connection);
}
+BT_EXPORT
void bt_connection_put_ref(const struct bt_connection *connection)
{
bt_object_put_ref(connection);