diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 18:51:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 18:51:55 +0200 |
commit | 527bfcea5c9ca5c8414620a022f097d4e53af784 (patch) | |
tree | f4bcee98f1f1f1d372a914a247dad86b5b36ad6e /runtime/modules.h | |
parent | 59227a861821b2e0e37357c0695f6b3d9f11dd9d (diff) | |
download | rsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.tar.gz rsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.tar.xz rsyslog-527bfcea5c9ca5c8414620a022f097d4e53af784.zip |
first implementation of strgen interface
and a first built-in strgen module. Some tweaks and more default strgens
are needed, but the code doesn't look too bad ;)
Diffstat (limited to 'runtime/modules.h')
-rw-r--r-- | runtime/modules.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/modules.h b/runtime/modules.h index 62f86ded..4ba6411e 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* pBuf); + } sm; } mod; void *pModHdlr; /* handler to the dynamic library holding the module */ # ifdef DEBUG |