summaryrefslogtreecommitdiffstats
path: root/grammar/parserif.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-06 10:05:29 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-06 10:05:29 +0200
commit2081c264a3b3219ed4756e548ec9b122fae9328c (patch)
tree5d34b18c4db4c98a7f086d7d651141761029f6c0 /grammar/parserif.h
parentf8e7c7e3656085bee11b1667f32828dfb4e3df06 (diff)
downloadrsyslog-2081c264a3b3219ed4756e548ec9b122fae9328c.tar.gz
rsyslog-2081c264a3b3219ed4756e548ec9b122fae9328c.tar.xz
rsyslog-2081c264a3b3219ed4756e548ec9b122fae9328c.zip
milestone: abstracted parser interface ...
so that both testdriver and other callers (rsyslog!) can use it without changing the parser (this simplifies development).
Diffstat (limited to 'grammar/parserif.h')
-rw-r--r--grammar/parserif.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/grammar/parserif.h b/grammar/parserif.h
index b6986dd8..c88114c9 100644
--- a/grammar/parserif.h
+++ b/grammar/parserif.h
@@ -5,4 +5,14 @@ int yyparse();
int yydebug;
void dbgprintf(char *fmt, ...) __attribute__((format(printf, 1, 2)));
void parser_errmsg(char *fmt, ...) __attribute__((format(printf, 1, 2)));
+
+/* entry points to be called after the parser has processed the
+ * element in question. Actual processing must than be done inside
+ * these functions.
+ */
+void cnfDoObj(struct cnfobj *o);
+void cnfDoRule(struct cnfrule *rule);
+void cnfDoCfsysline(char *ln);
+void cnfDoBSDTag(char *ln);
+void cnfDoBSDHost(char *ln);
#endif