summaryrefslogtreecommitdiffstats
path: root/objomsr.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-27 16:55:40 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-27 16:55:40 +0000
commit1d96a98daf4ac4c4ec9e664e328f1aac4bf6af9e (patch)
tree249ec71321b657a6a37b91f1d03f4e2c4bf07697 /objomsr.c
parent8193522d85290df659d8c2e505e8c47f39db9267 (diff)
downloadrsyslog-1d96a98daf4ac4c4ec9e664e328f1aac4bf6af9e.tar.gz
rsyslog-1d96a98daf4ac4c4ec9e664e328f1aac4bf6af9e.tar.xz
rsyslog-1d96a98daf4ac4c4ec9e664e328f1aac4bf6af9e.zip
- added omsr object (objomsr.c, objomsr.h) - template request for output
modules - changed doAction() interface - templates and output string generation for doActon() is now fully
Diffstat (limited to 'objomsr.c')
-rw-r--r--objomsr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/objomsr.c b/objomsr.c
index 85aaee95..00e5e668 100644
--- a/objomsr.c
+++ b/objomsr.c
@@ -101,6 +101,7 @@ rsRetVal OMSRsetEntry(omodStringRequest_t *pThis, int iEntry, uchar *pTplName, i
assert(pTplName != NULL);
assert(iEntry < pThis->iNumEntries);
+printf("OMSRsetEntry %s: %d\n", pTplName, iTplOpts);
if(pThis->ppTplName[iEntry] != NULL)
free(pThis->ppTplName[iEntry]);
pThis->ppTplName[iEntry] = pTplName; /* TODO: do we need to copy? */
@@ -135,7 +136,7 @@ int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, uchar **ppTplName, int
*ppTplName = pThis->ppTplName[iEntry];
*piTplOpts = pThis->piTplOpts[iEntry];
- return pThis->iNumEntries;
+ return RS_RET_OK;
}
/*
* vi:set ai: