summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-31 15:23:28 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-31 15:23:28 +0000
commit074ece90c0b7f32307716eeb6d0308b83197b6ce (patch)
tree707340dde192c4c4ac8b196f6da2d26bbfc22247 /rsyslog.h
parent7449e8356b19900acaa33e387bd4ea65ba85e204 (diff)
downloadrsyslog-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsyslog.h b/rsyslog.h
index 7d154112..b781383c 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -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;\