diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 15:23:28 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-31 15:23:28 +0000 |
commit | 074ece90c0b7f32307716eeb6d0308b83197b6ce (patch) | |
tree | 707340dde192c4c4ac8b196f6da2d26bbfc22247 /rsyslog.h | |
parent | 7449e8356b19900acaa33e387bd4ea65ba85e204 (diff) | |
download | rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.gz rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.xz rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.zip |
- got the basic code in place to create an in-memory list of cfsysline
handlers (omfile.c used as testing case) -- not yet in active code
Diffstat (limited to 'rsyslog.h')
-rw-r--r-- | rsyslog.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -34,6 +34,7 @@ */ enum rsRetVal_ /** return value. All methods return this if not specified otherwise */ { + RS_RET_NOT_IMPLEMENTED = -7, /**< implementation is missing (probably internal error or lazyness ;)) */ RS_RET_OUT_OF_MEMORY = -6, /**< memory allocation failed */ RS_RET_PROVIDED_BUFFER_TOO_SMALL = -50,/**< the caller provided a buffer, but the called function sees the size of this buffer is too small - operation not carried out */ RS_RET_TRUE = -1, @@ -74,6 +75,8 @@ typedef enum rsRetVal_ rsRetVal; /**< friendly type for global return value */ * the function finalizer always "finalize_it". */ #define CHKiRet(code) if((iRet = code) != RS_RET_OK) goto finalize_it +/* macro below is to be used if we need our own handling, eg for cleanup */ +#define CHKiRet_Hdlr(code) if((iRet = code) != RS_RET_OK) #define DEFiRet rsRetVal iRet = RS_RET_OK #define ABORT_FINALIZE(errCode) \ iRet = errCode;\ |