summaryrefslogtreecommitdiffstats
path: root/runtime/errmsg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-29 09:44:58 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-29 09:44:58 +0100
commit89060ecec2db9799af3d5eb17a174b9a0f2bd4b2 (patch)
treeb2e5c5f7c18b4f5bb7f0a6a0c5c564df9e6e627b /runtime/errmsg.h
parent1ea869ec5460806841ab4feacf24e25c288a5760 (diff)
downloadrsyslog-89060ecec2db9799af3d5eb17a174b9a0f2bd4b2.tar.gz
rsyslog-89060ecec2db9799af3d5eb17a174b9a0f2bd4b2.tar.bz2
rsyslog-89060ecec2db9799af3d5eb17a174b9a0f2bd4b2.zip
introduce new function to emit warning and other non-error messages
also refactor the error message subsystem a bit
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 */