]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output: add submodules list to OutputCtx
authorVictor Julien <victor@inliniac.net>
Wed, 19 Feb 2014 11:46:50 +0000 (12:46 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 15 Aug 2014 11:58:24 +0000 (13:58 +0200)
Add a list to the OutputCtx that can contain OutputModule structures.
This will be used by a 'parent' module to register submodules directly.

src/tm-modules.h

index 129c32f90d636e815d791dc66e98bacfe1d1b2f3..a606306c5590e1ddca63e95d18181c732ddd26b2 100644 (file)
@@ -74,6 +74,8 @@ typedef struct OutputCtx_ {
 
     /** Pointer to a cleanup function. */
     void (*DeInit)(struct OutputCtx_ *);
+
+    TAILQ_HEAD(, OutputModule_) submodules;
 } OutputCtx;
 
 TmModule *TmModuleGetByName(const char *name);