From: Philippe Proulx Date: Sat, 13 May 2017 00:33:32 +0000 (-0400) Subject: BT_GRAPH_STATUS_CANCELED is not an error, thus use a positive value X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=4a6b963eb0e4e9545deacfc74d81d3b9f96f060f;p=deliverable%2Fbabeltrace.git BT_GRAPH_STATUS_CANCELED is not an error, thus use a positive value Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/graph/graph.h b/include/babeltrace/graph/graph.h index b89aaa82b..594db3e84 100644 --- a/include/babeltrace/graph/graph.h +++ b/include/babeltrace/graph/graph.h @@ -38,6 +38,8 @@ struct bt_port; struct bt_connection; enum bt_graph_status { + /** Canceled. */ + BT_GRAPH_STATUS_CANCELED = 125, /** No sink can consume at the moment. */ BT_GRAPH_STATUS_AGAIN = 11, /** Downstream component does not support multiple inputs. */ @@ -51,8 +53,6 @@ enum bt_graph_status { BT_GRAPH_STATUS_NO_SINK = -6, /** General error. */ BT_GRAPH_STATUS_ERROR = -1, - /** Canceled. */ - BT_GRAPH_STATUS_CANCELED = -125, }; typedef void (*bt_graph_port_added_listener)(struct bt_port *port,