From 7ce25c2d6605d10466a9e8d8742fe1ed5e231709 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Tue, 1 Nov 2016 22:48:45 -0400 Subject: error trace: use descriptive errcodes for invocations of SLBT_CUSTOM_ERROR. --- include/slibtool/slibtool.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 812efd3..34e3364 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -25,6 +25,18 @@ extern "C" { #define SLBT_USAGE 0x01 #define SLBT_ERROR 0x02 +enum slbt_custom_error { + SLBT_ERR_ARCHIVE_IMPORT, + SLBT_ERR_HOST_INIT, + SLBT_ERR_INSTALL_FAIL, + SLBT_ERR_INSTALL_FLOW, + SLBT_ERR_INSTALL_REV, + SLBT_ERR_LDRPATH_INIT, + SLBT_ERR_LINK_FLOW, + SLBT_ERR_LINK_FREQ, + SLBT_ERR_UNINSTALL_FAIL, +}; + /* driver flags */ #define SLBT_DRIVER_VERBOSITY_NONE 0x0000 #define SLBT_DRIVER_VERBOSITY_ERRORS 0x0001 -- cgit v1.2.3