summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-24 17:53:16 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-24 17:53:16 +0000
commit965c09147c8f87e4ed6ece46b9d54e612e35cf11 (patch)
treefb8a7f782c0d2b07c6413a13aa9cc70b7f3404fa /rsyslog.h
parent79ca6100e64b3fff6f52444f121ee1f7642a7b04 (diff)
downloadrsyslog-965c09147c8f87e4ed6ece46b9d54e612e35cf11.tar.gz
rsyslog-965c09147c8f87e4ed6ece46b9d54e612e35cf11.tar.xz
rsyslog-965c09147c8f87e4ed6ece46b9d54e612e35cf11.zip
- added some thoughts on RainerScript
- worked a bit on conversion functions
Diffstat (limited to 'rsyslog.h')
-rw-r--r--rsyslog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/rsyslog.h b/rsyslog.h
index 1d0bb3ce..a64a13d9 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -47,6 +47,7 @@
/* some universal 64 bit define... */
typedef long long int64;
typedef long long unsigned uint64;
+typedef int64 number_t; /* type to use for numbers - TODO: maybe an autoconf option? */
/* The error codes below are orginally "borrowed" from
* liblogging. As such, we reserve values up to -2999
@@ -131,7 +132,8 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth
RS_RET_OUT_OF_STACKSPACE = -2055, /**< a stack data structure is exhausted and can not be grown */
RS_RET_STACK_EMPTY = -2056, /**< a pop was requested on a stack, but the stack was already empty */
RS_RET_INVALID_VMOP = -2057, /**< invalid virtual machine instruction */
- RS_RET_INVALID_VAR = -2057, /**< a var_t or its content is unsuitable, eg. VARTYPE_NONE */
+ RS_RET_INVALID_VAR = -2058, /**< a var_t or its content is unsuitable, eg. VARTYPE_NONE */
+ RS_RET_NOT_A_NUMBER = -2059, /**< e.g. conversion impossible because the string is not a number */
RS_RET_OK_DELETE_LISTENTRY = 1, /**< operation successful, but callee requested the deletion of an entry (special state) */
RS_RET_TERMINATE_NOW = 2, /**< operation successful, function is requested to terminate (mostly used with threads) */
RS_RET_NO_RUN = 3, /**< operation successful, but function does not like to be executed */