lib: graph: add "self" and some "private" APIs
[babeltrace.git] / include / babeltrace / graph / graph.h
index f44bee7f3c12328ae0f3557781daeeacdc1c3ab8..440fe58b66222d56ae2efd132d21882d46e52031 100644 (file)
@@ -28,9 +28,6 @@
 /* For bt_bool */
 #include <babeltrace/types.h>
 
-/* For enum bt_component_status */
-#include <babeltrace/graph/component-status.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -38,21 +35,14 @@ extern "C" {
 struct bt_graph;
 
 enum bt_graph_status {
+       BT_GRAPH_STATUS_OK = 0,
+       BT_GRAPH_STATUS_END = 1,
+       BT_GRAPH_STATUS_AGAIN = 11,
        BT_GRAPH_STATUS_COMPONENT_REFUSES_PORT_CONNECTION = 111,
-       /** Canceled. */
-       BT_GRAPH_STATUS_CANCELED = BT_COMPONENT_STATUS_GRAPH_IS_CANCELED,
-       /** No sink can consume at the moment. */
-       BT_GRAPH_STATUS_AGAIN = BT_COMPONENT_STATUS_AGAIN,
-       /** Downstream component does not support multiple inputs. */
-       BT_GRAPH_STATUS_END = BT_COMPONENT_STATUS_END,
-       BT_GRAPH_STATUS_OK = BT_COMPONENT_STATUS_OK,
-       /** Invalid arguments. */
-       BT_GRAPH_STATUS_INVALID = BT_COMPONENT_STATUS_INVALID,
-       /** No sink in graph. */
+       BT_GRAPH_STATUS_CANCELED = 125,
+       BT_GRAPH_STATUS_ERROR = -1,
        BT_GRAPH_STATUS_NO_SINK = -6,
-       /** General error. */
-       BT_GRAPH_STATUS_ERROR = BT_COMPONENT_STATUS_ERROR,
-       BT_GRAPH_STATUS_NOMEM = BT_COMPONENT_STATUS_NOMEM,
+       BT_GRAPH_STATUS_NOMEM = -12,
 };
 
 extern bt_bool bt_graph_is_canceled(struct bt_graph *graph);
This page took 0.023966 seconds and 4 git commands to generate.