diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 18:43:18 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:51 -0500 |
commit | e8769a78fcf3df8b492adff165e1bcb3014ad95a (patch) | |
tree | b271677036e43b2fe3b7684846216150b67269b2 | |
parent | 6949720562f2cc0e07c10a15b248917f0171b285 (diff) | |
download | perk-e8769a78fcf3df8b492adff165e1bcb3014ad95a.tar.bz2 perk-e8769a78fcf3df8b492adff165e1bcb3014ad95a.tar.xz |
perk.h: added public error trace definitions.
-rw-r--r-- | include/perk/perk.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h index f7cefaa..c5e0cff 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -46,6 +46,12 @@ extern "C" { /* unit action flags */ #define PERK_ACTION_MAP_READWRITE 0x0001 +/* error flags */ +#define PERK_ERROR_TOP_LEVEL 0x0001 +#define PERK_ERROR_NESTED 0x0002 +#define PERK_ERROR_CHILD 0x0004 +#define PERK_ERROR_CUSTOM 0x0008 + struct pe_source_version { int major; int minor; @@ -120,6 +126,15 @@ struct pe_io_ctx { int fdtmp; }; +struct pe_error_info { + int syserror; + int liberror; + const char * function; + int line; + unsigned flags; + void * ctx; +}; + struct pe_common_ctx { uint64_t drvflags; uint64_t actflags; @@ -141,6 +156,7 @@ struct pe_driver_ctx { const char * program; const char * module; const struct pe_common_ctx * cctx; + struct pe_error_info ** errv; void * any; int status; int nerrors; |