summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-03 18:48:40 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-03 18:48:40 +0100
commitb41e0d51f54a89f489bbf1c1bf5f85d576ae4049 (patch)
tree9c6b7b1103c70f27818180bb586095c6f9f05173 /runtime
parentb1db196953713dd09c499a3edf81347bd903c19e (diff)
downloadrsyslog-b41e0d51f54a89f489bbf1c1bf5f85d576ae4049.tar.gz
rsyslog-b41e0d51f54a89f489bbf1c1bf5f85d576ae4049.tar.xz
rsyslog-b41e0d51f54a89f489bbf1c1bf5f85d576ae4049.zip
some more cleanup along the way
... getting the module structure a bit cleaner ;)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/rule.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/runtime/rule.c b/runtime/rule.c
index fe2cf432..ae0da0d6 100644
--- a/runtime/rule.c
+++ b/runtime/rule.c
@@ -40,7 +40,6 @@
#include "var.h"
#include "srUtils.h"
#include "unicode-helper.h"
-#include "dirty.h" /* for getFIOPName */
/* static data */
DEFobjStaticHelpers
@@ -49,6 +48,35 @@ DEFobjCurrIf(expr)
DEFobjCurrIf(var)
DEFobjCurrIf(vm)
+
+/* support for simple textual representation of FIOP names
+ * rgerhards, 2005-09-27
+ */
+static char*
+getFIOPName(unsigned iFIOP)
+{
+ char *pRet;
+ switch(iFIOP) {
+ case FIOP_CONTAINS:
+ pRet = "contains";
+ break;
+ case FIOP_ISEQUAL:
+ pRet = "isequal";
+ break;
+ case FIOP_STARTSWITH:
+ pRet = "startswith";
+ break;
+ case FIOP_REGEX:
+ pRet = "regex";
+ break;
+ default:
+ pRet = "NOP";
+ break;
+ }
+ return pRet;
+}
+
+
/* iterate over all actions, this is often needed, for example when HUP processing
* must be done or a shutdown is pending.
*/