diff options
author | Miloslav Trmač <mitr@redhat.com> | 2012-08-11 05:58:15 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2012-08-28 10:26:42 +0200 |
commit | 67039f21b40f711b2462b022b8c508af75ef3dcb (patch) | |
tree | 7ed9feabb18844ced920f82ee4921ce76d98f3bd /action.c | |
parent | 2514bccdccaebe128055ffa0dc5132b4f4c48635 (diff) | |
download | rsyslog-67039f21b40f711b2462b022b8c508af75ef3dcb.tar.gz rsyslog-67039f21b40f711b2462b022b8c508af75ef3dcb.tar.xz rsyslog-67039f21b40f711b2462b022b8c508af75ef3dcb.zip |
Add OMSR_TPL_AS_FIELDS mode for output modules.
This does not yet do anything.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -823,6 +823,9 @@ static rsRetVal prepareDoActionParams(action_t *pAction, batch_obj_t *pElem) case ACT_MSG_PASSING: pElem->staticActParams[i] = (void*) pMsg; break; + case ACT_FIELDS_PASSING: + pElem->staticActParams[i] = ""; + break; default:dbgprintf("software bug/error: unknown pAction->eParamPassing %d in prepareDoActionParams\n", (int) pAction->eParamPassing); assert(0); /* software bug if this happens! */ @@ -874,6 +877,7 @@ static rsRetVal releaseBatch(action_t *pAction, batch_t *pBatch) break; case ACT_STRING_PASSING: case ACT_MSG_PASSING: + case ACT_FIELDS_PASSING: /* nothing to do in that case */ /* TODO ... and yet we do something ;) This is considered not * really needed, but I was not bold enough to remove that while @@ -1933,6 +1937,8 @@ addAction(action_t **ppAction, modInfo_t *pMod, void *pModData, pAction->eParamPassing = ACT_ARRAY_PASSING; } else if(iTplOpts & OMSR_TPL_AS_MSG) { pAction->eParamPassing = ACT_MSG_PASSING; + } else if(iTplOpts & OMSR_TPL_AS_FIELDS) { + pAction->eParamPassing = ACT_FIELDS_PASSING; } else { pAction->eParamPassing = ACT_STRING_PASSING; } |