summaryrefslogtreecommitdiff
path: root/runtime/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/parser.h')
-rw-r--r--runtime/parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/parser.h b/runtime/parser.h
index 87a6269..bd8a2a5 100644
--- a/runtime/parser.h
+++ b/runtime/parser.h
@@ -21,7 +21,6 @@
#ifndef INCLUDED_PARSER_H
#define INCLUDED_PARSER_H
-
/* we create a small helper object, a list of parsers, that we can use to
* build a chain of them whereever this is needed (initially thought to be
* used in ruleset.c as well as ourselvs).
@@ -37,6 +36,7 @@ struct parser_s {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
uchar *pName; /* name of this parser */
modInfo_t *pModule; /* pointer to parser's module */
+ void *pInst; /* instance data for the parser (v2+ module interface) */
sbool bDoSanitazion; /* do standard message sanitazion before calling parser? */
sbool bDoPRIParsing; /* do standard PRI parsing before calling parser? */
};
@@ -66,6 +66,7 @@ void printParserList(parserList_t *pList);
/* prototypes */
PROTOTYPEObj(parser);
+rsRetVal parserConstructViaModAndName(modInfo_t *pMod, uchar *const pName, void *parserInst);
#endif /* #ifndef INCLUDED_PARSER_H */