summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorKylie McClain <kylie@somasis.com>2016-11-01 22:48:45 -0400
committermidipix <writeonce@midipix.org>2016-11-01 23:53:05 -0400
commit7ce25c2d6605d10466a9e8d8742fe1ed5e231709 (patch)
tree65172148197a052f12b4be4ec2996a650d7d2e7d /include
parent4a7f9941e0b15da74e7ff81a4092169396ae8f61 (diff)
downloadslibtool-7ce25c2d6605d10466a9e8d8742fe1ed5e231709.tar.bz2
slibtool-7ce25c2d6605d10466a9e8d8742fe1ed5e231709.tar.xz
error trace: use descriptive errcodes for invocations of SLBT_CUSTOM_ERROR.
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h12
1 files changed, 12 insertions, 0 deletions
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