#include "lib/object-pool.h"
#include "common/assert.h"
#include "common/common.h"
+#include <stdbool.h>
#include <stdlib.h>
#include <glib.h>
static inline
void bt_graph_set_can_consume(struct bt_graph *graph, bool can_consume)
{
- BT_ASSERT(graph);
+ BT_ASSERT_DBG(graph);
graph->can_consume = can_consume;
}
void bt_graph_remove_connection(struct bt_graph *graph,
struct bt_connection *connection);
-/*
- * This only works with a component which is not connected at this
- * point.
- *
- * Also the reference count of `component` should be 0 when you call
- * this function, which means only `graph` owns the component, so it
- * is safe to destroy.
- */
-BT_HIDDEN
-int bt_graph_remove_unconnected_component(struct bt_graph *graph,
- struct bt_component *component);
-
BT_HIDDEN
void bt_graph_add_message(struct bt_graph *graph,
struct bt_message *msg);
int status = BT_FUNC_STATUS_OK;
uint64_t i;
- BT_ASSERT(graph->config_state != BT_GRAPH_CONFIGURATION_STATE_FAULTY);
+ BT_ASSERT_DBG(graph->config_state !=
+ BT_GRAPH_CONFIGURATION_STATE_FAULTY);
if (G_LIKELY(graph->config_state ==
BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) {