summaryrefslogtreecommitdiffstats
path: root/runtime/modules.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/modules.h')
-rw-r--r--runtime/modules.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/modules.h b/runtime/modules.h
index 62f86ded..49586e8d 100644
--- a/runtime/modules.h
+++ b/runtime/modules.h
@@ -54,7 +54,8 @@ typedef enum eModType_ {
eMOD_IN = 0, /* input module */
eMOD_OUT = 1, /* output module */
eMOD_LIB = 2, /* library module */
- eMOD_PARSER = 3 /* parser module */
+ eMOD_PARSER = 3,/* parser module */
+ eMOD_STRGEN = 4 /* strgen module */
} eModType_t;
@@ -122,6 +123,9 @@ struct modInfo_s {
struct { /* data for parser modules */
rsRetVal (*parse)(msg_t*);
} pm;
+ struct { /* data for strgen modules */
+ rsRetVal (*strgen)(msg_t*, uchar**, size_t *);
+ } sm;
} mod;
void *pModHdlr; /* handler to the dynamic library holding the module */
# ifdef DEBUG
@@ -132,6 +136,7 @@ struct modInfo_s {
# endif
};
+
/* interfaces */
BEGINinterface(module) /* name must also be changed in ENDinterface macro! */
modInfo_t *(*GetNxt)(modInfo_t *pThis);
@@ -154,7 +159,4 @@ PROTOTYPEObj(module);
/* TODO: remove them below (means move the config init code) -- rgerhards, 2008-02-19 */
extern uchar *pModDir; /* read-only after startup */
-
#endif /* #ifndef MODULES_H_INCLUDED */
-/* vi:set ai:
- */