From 4a6b963eb0e4e9545deacfc74d81d3b9f96f060f Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 12 May 2017 20:33:32 -0400 Subject: [PATCH] BT_GRAPH_STATUS_CANCELED is not an error, thus use a positive value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- include/babeltrace/graph/graph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.34.1