if (user_connection) {
/* Move reference to user */
*user_connection = connection;
- connection = NULL;
}
end:
if (user_component) {
/* Move reference to user */
*user_component = component;
- component = NULL;
}
end:
return BT_FUNC_STATUS_OK;
}
-void bt_graph_interrupt(struct bt_graph *graph)
+struct bt_interrupter *bt_graph_borrow_default_interrupter(bt_graph *graph)
{
BT_ASSERT_PRE_NON_NULL(graph, "Graph");
- bt_interrupter_set(graph->default_interrupter);
- BT_LIB_LOGI("Interrupted graph: %!+g", graph);
+ return graph->default_interrupter;
}
void bt_graph_get_ref(const struct bt_graph *graph)