summaryrefslogtreecommitdiffstats
path: root/ctok_token.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-20 15:43:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-20 15:43:55 +0000
commitc2d0c3d4c31164ece386a61ef3326bb40c348fdb (patch)
tree62086766f894e191ec090fd73003e871b46112f3 /ctok_token.h
parent897a6853118de669be90a451a7319a219cde6feb (diff)
downloadrsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.tar.gz
rsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.tar.xz
rsyslog-c2d0c3d4c31164ece386a61ef3326bb40c348fdb.zip
- added "contains" and "startwith" comparison operations
- defined initial set of opcodes
Diffstat (limited to 'ctok_token.h')
-rw-r--r--ctok_token.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/ctok_token.h b/ctok_token.h
index ccde6325..66be42b6 100644
--- a/ctok_token.h
+++ b/ctok_token.h
@@ -26,7 +26,10 @@
#include "stringbuf.h"
/* the tokens... I use numbers below so that the tokens can be easier
- * identified in debug output. */
+ * identified in debug output. These ID's are also partly resused as opcodes.
+ * As such, they should be kept below 1,000 so that they do not interfer
+ * with the rest of the opcodes.
+ */
typedef struct {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
enum {
@@ -54,7 +57,9 @@ typedef struct {
ctok_CMP_LT = 102,
ctok_CMP_GT = 103,
ctok_CMP_LTEQ = 104,
- ctok_CMP_GTEQ = 105, /* end compare operations */
+ ctok_CMP_CONTAINS = 105,
+ ctok_CMP_STARTSWITH = 106,
+ ctok_CMP_GTEQ = 107, /* end compare operations */
} tok;
rsCStrObj *pstrVal;
int64 intVal;