summaryrefslogtreecommitdiffhomepage
path: root/src/internal/mdso_errinfo_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 20:31:05 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:51 -0500
commit1d4a9e7cb47178077e112f73bf6a60397f519497 (patch)
treea1fceb82604d4e9edf677470e1e0dbf4034a98c0 /src/internal/mdso_errinfo_impl.h
parenta83ebf963950445ec30130f048fda5343ca8f621 (diff)
downloadmdso-1d4a9e7cb47178077e112f73bf6a60397f519497.tar.bz2
mdso-1d4a9e7cb47178077e112f73bf6a60397f519497.tar.xz
driver: struct mdso_error_info: extend and refactor.
Diffstat (limited to 'src/internal/mdso_errinfo_impl.h')
-rw-r--r--src/internal/mdso_errinfo_impl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/internal/mdso_errinfo_impl.h b/src/internal/mdso_errinfo_impl.h
index 5a56e70..0e9b384 100644
--- a/src/internal/mdso_errinfo_impl.h
+++ b/src/internal/mdso_errinfo_impl.h
@@ -9,12 +9,12 @@
int mdso_record_error(
const struct mdso_driver_ctx *,
- int syserror,
- int liberror,
- const char * function,
- int line,
- unsigned flags,
- void * ctx);
+ int esyscode,
+ int elibcode,
+ const char * efunction,
+ int eline,
+ unsigned eflags,
+ void * eany);
#define MDSO_SYSTEM_ERROR(dctx) \
mdso_record_error( \
@@ -58,11 +58,11 @@ int mdso_record_error(
MDSO_ERROR_TOP_LEVEL, \
0)
-#define MDSO_CUSTOM_ERROR(dctx,liberror) \
+#define MDSO_CUSTOM_ERROR(dctx,elibcode) \
mdso_record_error( \
dctx, \
0, \
- liberror, \
+ elibcode, \
__func__, \
__LINE__, \
MDSO_ERROR_TOP_LEVEL \