summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-06 17:55:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-06 17:55:04 +0200
commit8e3c5a9ca3732a41fbb8581b13c49acd699820da (patch)
treef75be0a65a7ab52fd3c35d240d0cc0446d3e883d /runtime/rsyslog.h
parent010060289a729dd930ac04b72237f0ca0db9ea1d (diff)
downloadrsyslog-8e3c5a9ca3732a41fbb8581b13c49acd699820da.tar.gz
rsyslog-8e3c5a9ca3732a41fbb8581b13c49acd699820da.tar.xz
rsyslog-8e3c5a9ca3732a41fbb8581b13c49acd699820da.zip
improved internal handling of RainerScript functions
- building the necessary plumbing to support more functions with decent runtime performance. This is also necessary towards the long-term goal of loadable library modules. - added new RainerScript function "tolower"
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 032d8c04..cea457d8 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -84,6 +84,8 @@ typedef rsRetVal (*errLogFunc_t)(uchar*); /* this is a trick to store a function
typedef struct permittedPeers_s permittedPeers_t; /* this should go away in the long term -- rgerhards, 2008-05-19 */
typedef struct permittedPeerWildcard_s permittedPeerWildcard_t; /* this should go away in the long term -- rgerhards, 2008-05-19 */
typedef struct tcpsrv_s tcpsrv_t;
+typedef struct vmstk_s vmstk_t;
+typedef rsRetVal (*prsf_t)(struct vmstk_s*, int); /* pointer to a RainerScript function */
/* some universal 64 bit define... */
typedef long long int64;
@@ -258,6 +260,8 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth
RS_RET_FUNC_MISSING_EXPR = -2111, /**< no expression after comma in function call (rainerscript) */
RS_RET_INVLD_NBR_ARGUMENTS = -2112, /**< invalid number of arguments for function call (rainerscript) */
RS_RET_INVLD_FUNC = -2113, /**< invalid function name for function call (rainerscript) */
+ RS_RET_DUP_FUNC_NAME = -2114, /**< duplicate function name (rainerscript) */
+ RS_RET_UNKNW_FUNC = -2115, /**< unkown function name (rainerscript) */
/* RainerScript error messages (range 1000.. 1999) */
RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */