BT_GRAPH_CONFIGURATION_STATE_CONFIGURING,
BT_GRAPH_CONFIGURATION_STATE_PARTIALLY_CONFIGURED,
BT_GRAPH_CONFIGURATION_STATE_CONFIGURED,
+ BT_GRAPH_CONFIGURATION_STATE_FAULTY,
};
struct bt_graph {
enum bt_graph_status status = BT_GRAPH_STATUS_OK;
uint64_t i;
+ BT_ASSERT(graph->config_state != BT_GRAPH_CONFIGURATION_STATE_FAULTY);
+
if (likely(graph->config_state ==
BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) {
goto end;
#endif
if (comp_status != BT_SELF_COMPONENT_STATUS_OK) {
+ status = BT_GRAPH_STATUS_ERROR;
#ifdef BT_LIB_LOGW
BT_LIB_LOGW("User's \"graph is configured\" method failed: "
"%![comp-]+c, status=%s",