summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-02 11:25:53 -0400
committermidipix <writeonce@midipix.org>2016-09-03 14:36:41 -0400
commit6dc88795d8414d03ce8cd9c99a2107841c56d484 (patch)
tree45cc5c00d03f6d1894ec81ad5b440a69fc873992 /include
parent3a8090030fad79d143daa3df00ee367d86ada75a (diff)
downloadslibtool-6dc88795d8414d03ce8cd9c99a2107841c56d484.tar.bz2
slibtool-6dc88795d8414d03ce8cd9c99a2107841c56d484.tar.xz
slibtool.h: added public error trace definitions.
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index d69b1c6..804ced5 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -66,6 +66,12 @@ extern "C" {
#define SLBT_DRIVER_ANNOTATE_NEVER 0x20000000
#define SLBT_DRIVER_ANNOTATE_FULL 0x40000000
+/* error flags */
+#define SLBT_ERROR_TOP_LEVEL 0x0001
+#define SLBT_ERROR_NESTED 0x0002
+#define SLBT_ERROR_CHILD 0x0004
+#define SLBT_ERROR_CUSTOM 0x0008
+
/* execution modes */
enum slbt_mode {
SLBT_MODE_UNKNOWN,
@@ -154,6 +160,15 @@ struct slbt_version_info {
const char * vernumber;
};
+struct slbt_error_info {
+ int syserror;
+ int liberror;
+ const char * function;
+ int line;
+ unsigned flags;
+ void * ctx;
+};
+
struct slbt_host_params {
const char * host;
const char * flavor;
@@ -208,6 +223,7 @@ struct slbt_driver_ctx {
const char * program;
const char * module;
const struct slbt_common_ctx * cctx;
+ struct slbt_error_info ** errv;
void * any;
int status;
int nerrors;