From cacd3e5f0c08e96e3bd7fbaebb3bbec3ec3751c1 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 26 Oct 2016 01:28:54 -0400 Subject: driver: struct slbt_error_info: extend and refactor. --- src/internal/slibtool_errinfo_impl.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/internal/slibtool_errinfo_impl.h') diff --git a/src/internal/slibtool_errinfo_impl.h b/src/internal/slibtool_errinfo_impl.h index c830975..23c8263 100644 --- a/src/internal/slibtool_errinfo_impl.h +++ b/src/internal/slibtool_errinfo_impl.h @@ -9,12 +9,12 @@ int slbt_record_error( const struct slbt_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 SLBT_SYSTEM_ERROR(dctx) \ slbt_record_error( \ @@ -58,11 +58,11 @@ int slbt_record_error( SLBT_ERROR_TOP_LEVEL, \ 0) -#define SLBT_CUSTOM_ERROR(dctx,liberror) \ +#define SLBT_CUSTOM_ERROR(dctx,elibcode) \ slbt_record_error( \ dctx, \ 0, \ - liberror, \ + elibcode, \ __func__, \ __LINE__, \ SLBT_ERROR_TOP_LEVEL \ -- cgit v1.2.3