From 6dc88795d8414d03ce8cd9c99a2107841c56d484 Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 03 2016 18:36:41 +0000 Subject: slibtool.h: added public error trace definitions. --- 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;