summaryrefslogtreecommitdiffstats
path: root/runtime/modules.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-20 09:34:31 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-20 09:34:31 +0200
commit46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f (patch)
tree8740339bdd1b50fea742814db1248a7fbf8ebd0d /runtime/modules.h
parent2cccec9a9ff5a5d1b0db6f869a525c4b3c601c33 (diff)
downloadrsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.tar.gz
rsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.tar.xz
rsyslog-46ccc9e77f5e2ee3ded1ca79e973fafdc37e4c0f.zip
milestone: module() can load module in legacy mode
Diffstat (limited to 'runtime/modules.h')
-rw-r--r--runtime/modules.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/modules.h b/runtime/modules.h
index 6c5a2cba..5a293352 100644
--- a/runtime/modules.h
+++ b/runtime/modules.h
@@ -171,19 +171,26 @@ BEGINinterface(module) /* name must also be changed in ENDinterface macro! */
void (*PrintList)(void);
rsRetVal (*UnloadAndDestructAll)(eModLinkType_t modLinkTypesToUnload);
rsRetVal (*doModInit)(rsRetVal (*modInit)(), uchar *name, void *pModHdlr, modInfo_t **pNew);
- rsRetVal (*Load)(uchar *name, sbool bConfLoad);
+ rsRetVal (*Load)(uchar *name, sbool bConfLoad, struct cnfparamvals *pvals);
rsRetVal (*SetModDir)(uchar *name);
modInfo_t *(*FindWithCnfName)(rsconf_t *cnf, uchar *name, eModType_t rqtdType); /* added v3, 2011-07-19 */
ENDinterface(module)
-#define moduleCURR_IF_VERSION 3 /* increment whenever you change the interface structure! */
+#define moduleCURR_IF_VERSION 4 /* increment whenever you change the interface structure! */
/* Changes:
* v2
* - added param bCondLoad to Load call - 2011-04-27
* - removed GetNxtType, added GetNxtCnfType - 2011-04-27
+ * v3 (see above)
+ * v4
+ * - added thrid parameter to Load() - 2012-06-20
*/
/* prototypes */
PROTOTYPEObj(module);
+/* in v6, we go back to in-core static link for core objects, at least those
+ * that are not called from plugins.
+ */
+rsRetVal modulesProcessCnf(struct cnfobj *o);
/* TODO: remove "dirty" calls! */
rsRetVal addModToCnfList(modInfo_t *pThis);