diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-04 12:45:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-04 12:45:31 +0200 |
commit | d9e64c16e52357bae1eb00fc8403c4e63d6365ca (patch) | |
tree | 9a37b8395ff1e8996950328696054b24ddffd564 /runtime/modules.h | |
parent | 527bfcea5c9ca5c8414620a022f097d4e53af784 (diff) | |
download | rsyslog-d9e64c16e52357bae1eb00fc8403c4e63d6365ca.tar.gz rsyslog-d9e64c16e52357bae1eb00fc8403c4e63d6365ca.tar.xz rsyslog-d9e64c16e52357bae1eb00fc8403c4e63d6365ca.zip |
finshed implementation of strgen modules
and also provided four build-in modules for the most common use
cases, hopefully resulting in a speedup of around 5% for typical
rsyslog processing.
Diffstat (limited to 'runtime/modules.h')
-rw-r--r-- | runtime/modules.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/modules.h b/runtime/modules.h index 4ba6411e..49586e8d 100644 --- a/runtime/modules.h +++ b/runtime/modules.h @@ -124,7 +124,7 @@ struct modInfo_s { rsRetVal (*parse)(msg_t*); } pm; struct { /* data for strgen modules */ - rsRetVal (*strgen)(msg_t*, uchar* pBuf); + rsRetVal (*strgen)(msg_t*, uchar**, size_t *); } sm; } mod; void *pModHdlr; /* handler to the dynamic library holding the module */ @@ -136,6 +136,7 @@ struct modInfo_s { # endif }; + /* interfaces */ BEGINinterface(module) /* name must also be changed in ENDinterface macro! */ modInfo_t *(*GetNxt)(modInfo_t *pThis); @@ -158,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: - */ |