From: Jérémie Galarneau Date: Sat, 27 Aug 2016 20:14:58 +0000 (-0400) Subject: Reorder bt_component_status enum X-Git-Tag: v2.0.0-pre1~787 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=24c8ab3687bbeb87ba2de2c82ac429542914ee90;p=babeltrace.git Reorder bt_component_status enum Signed-off-by: Jérémie Galarneau --- 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;