summaryrefslogtreecommitdiffstats
path: root/runtime/errmsg.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/errmsg.h')
-rw-r--r--runtime/errmsg.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/errmsg.h b/runtime/errmsg.h
index 3f511ae5..730e8f82 100644
--- a/runtime/errmsg.h
+++ b/runtime/errmsg.h
@@ -23,7 +23,6 @@
#include "errmsg.h"
-/* TODO: define error codes */
#define NO_ERRCODE -1
/* the errmsg object */
@@ -35,8 +34,10 @@ typedef struct errmsg_s {
/* interfaces */
BEGINinterface(errmsg) /* name must also be changed in ENDinterface macro! */
void __attribute__((format(printf, 3, 4))) (*LogError)(const int iErrno, const int iErrCode, const char *pszErrFmt, ... );
+ /* v2, 2013-11-29 */
+ void __attribute__((format(printf, 4, 5))) (*LogMsg)(const int iErrno, const int iErrCode, const int severity, const char *pszErrFmt, ... );
ENDinterface(errmsg)
-#define errmsgCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+#define errmsgCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
/* prototypes */