Collect useless graph's connections
[babeltrace.git] / lib / graph / graph.c
index ab6b14cfb047c296d0db4183932220525ee4c0ec..34e832ad4c3a456c41e15f4404ee95ff8687d4e4 100644 (file)
@@ -782,3 +782,12 @@ extern bt_bool bt_graph_is_canceled(struct bt_graph *graph)
 {
        return graph ? graph->canceled : BT_FALSE;
 }
+
+BT_HIDDEN
+void bt_graph_remove_connection(struct bt_graph *graph,
+               struct bt_connection *connection)
+{
+       assert(graph);
+       assert(connection);
+       g_ptr_array_remove(graph->connections, connection);
+}
This page took 0.023462 seconds and 4 git commands to generate.