From 24c8ab3687bbeb87ba2de2c82ac429542914ee90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 27 Aug 2016 16:14:58 -0400 Subject: [PATCH] Reorder bt_component_status enum MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- include/babeltrace/plugin/component.h | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/include/babeltrace/plugin/component.h b/include/babeltrace/plugin/component.h index 5462b7b1..9655c00d 100644 --- a/include/babeltrace/plugin/component.h +++ b/include/babeltrace/plugin/component.h @@ -39,23 +39,18 @@ extern "C" { * Status code. Errors are always negative. */ enum bt_component_status { - /** Memory allocation failure. */ - BT_COMPONENT_STATUS_NOMEM = -4, - - /** Invalid arguments. */ - BT_COMPONENT_STATUS_INVALID = -3, - - /** Unsupported component feature. */ - BT_COMPONENT_STATUS_UNSUPPORTED = -2, - + /** No error, okay. */ + BT_COMPONENT_STATUS_OK = 0, /** General error. */ BT_COMPONENT_STATUS_ERROR = -1, - - /** No error, okay. */ - BT_COMPONENT_STATUS_OK = 0, + /** Unsupported component feature. */ + BT_COMPONENT_STATUS_UNSUPPORTED = -2, + /** Invalid arguments. */ + BT_COMPONENT_STATUS_INVALID = -3, + /** Memory allocation failure. */ + BT_COMPONENT_STATUS_NOMEM = -4, }; - struct bt_component; struct bt_value; -- 2.34.1