From a27aeabb58992523714699c8b2c0d1c8c0f943d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 13 May 2015 17:53:12 -0400 Subject: [PATCH] Comment plug-in error codes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- include/babeltrace/plugin/plugin.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/babeltrace/plugin/plugin.h b/include/babeltrace/plugin/plugin.h index 1080e2bb..8134074d 100644 --- a/include/babeltrace/plugin/plugin.h +++ b/include/babeltrace/plugin/plugin.h @@ -53,16 +53,21 @@ enum bt_plugin_type { * Status code. Errors are always negative. */ enum bt_plugin_status { + /** Memory allocation failure. **/ /* -12 for compatibility with -ENOMEM */ BT_PLUGIN_STATUS_NOMEM = -12, + /** Invalid arguments. **/ /* -22 for compatibility with -EINVAL */ BT_PLUGIN_STATUS_INVAL = -22, + /** Unsupported plug-in feature. **/ BT_PLUGIN_STATUS_UNSUPPORTED = -2, + /** General error. **/ BT_PLUGIN_STATUS_ERROR = -1, + /** No error, okay. **/ BT_PLUGIN_STATUS_OK = 0, } -- 2.34.1