lib: add sink component class's "graph is configured" method
[babeltrace.git] / lib / graph / component.c
index 48454d649ca56ed4369664a74c075cccba135db2..53c9cd6defa4a12d9cac248e78ac4073e49b200e 100644 (file)
@@ -204,7 +204,8 @@ struct bt_port *add_port(
        BT_ASSERT_PRE(graph && !bt_graph_is_canceled(graph),
                "Component's graph is canceled: %![comp-]+c, %![graph-]+g",
                component, graph);
-       BT_ASSERT_PRE(!graph->is_configured,
+       BT_ASSERT_PRE(
+               graph->config_state == BT_GRAPH_CONFIGURATION_STATE_CONFIGURING,
                "Component's graph is already configured: "
                "%![comp-]+c, %![graph-]+g", component, graph);
 
This page took 0.023353 seconds and 4 git commands to generate.