lib: graph: disallow recursive consuming
[babeltrace.git] / include / babeltrace / graph / graph-internal.h
index f8f0d1a17475f27cb7a783567eaa43134d2e9981..7fdca46ae8cdfb105ad7b30cd3188c95f9c36045 100644 (file)
@@ -58,6 +58,9 @@ struct bt_graph {
        GQueue *sinks_to_consume;
 
        bt_bool canceled;
+       bt_bool in_remove_listener;
+       bt_bool has_sink;
+       bt_bool can_consume;
 
        struct {
                GArray *port_added;
@@ -101,8 +104,6 @@ const char *bt_graph_status_string(enum bt_graph_status status)
                return "BT_GRAPH_STATUS_END";
        case BT_GRAPH_STATUS_OK:
                return "BT_GRAPH_STATUS_OK";
-       case BT_GRAPH_STATUS_ALREADY_IN_A_GRAPH:
-               return "BT_GRAPH_STATUS_ALREADY_IN_A_GRAPH";
        case BT_GRAPH_STATUS_INVALID:
                return "BT_GRAPH_STATUS_INVALID";
        case BT_GRAPH_STATUS_NO_SINK:
@@ -113,6 +114,8 @@ const char *bt_graph_status_string(enum bt_graph_status status)
                return "BT_GRAPH_STATUS_COMPONENT_REFUSES_PORT_CONNECTION";
        case BT_GRAPH_STATUS_NOMEM:
                return "BT_GRAPH_STATUS_NOMEM";
+       case BT_GRAPH_STATUS_CANNOT_CONSUME:
+               return "BT_GRAPH_STATUS_CANNOT_CONSUME";
        default:
                return "(unknown)";
        }
This page took 0.025155 seconds and 4 git commands to generate.