summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-25 10:52:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-25 10:52:47 +0000
commit36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5 (patch)
tree0dc4db7ed2fd7ffa5efba0c4ee246088a91ea2ab /modules.c
parenta3192ac18ed9df7d95d0c8d5795994e867c85eca (diff)
downloadrsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.tar.gz
rsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.tar.xz
rsyslog-36f1b6d7f97c0dd6e96c05876ee7ddeaa5a0a3d5.zip
added new function dbgPrintInstInfo() to omod interface
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index 0096cfbc..db79e4ef 100644
--- a/modules.c
+++ b/modules.c
@@ -175,6 +175,11 @@ rsRetVal doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)()), uchar *name)
moduleDestruct(pNew);
return iRet;
}
+ if((iRet = (*pNew->modQueryEtryPt)((uchar*)"dbgPrintInstInfo",
+ &pNew->dbgPrintInstInfo)) != RS_RET_OK) {
+ moduleDestruct(pNew);
+ return iRet;
+ }
if((iRet = (*pNew->modQueryEtryPt)((uchar*)"freeInstance", &pNew->freeInstance)) != RS_RET_OK) {
moduleDestruct(pNew);
return iRet;
@@ -218,6 +223,7 @@ void modPrintList(void)
dprintf("\tqueryEtryPt: 0x%x\n", (unsigned) pMod->modQueryEtryPt);
dprintf("\tdoAction: 0x%x\n", (unsigned) pMod->mod.om.doAction);
dprintf("\tparseSelectorAct: 0x%x\n", (unsigned) pMod->mod.om.parseSelectorAct);
+ dprintf("\tdbgPrintInstInfo: 0x%x\n", (unsigned) pMod->dbgPrintInstInfo);
dprintf("\tfreeInstance: 0x%x\n", (unsigned) pMod->freeInstance);
dprintf("\n");
pMod = modGetNxt(pMod); /* done, go next */