summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
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 */