diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-29 09:56:49 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-29 09:56:49 +0200 |
commit | 901270418eca404a1f05c2b5ace66954b8b690b1 (patch) | |
tree | ec09bf6364f099ebb1d1a80661547e629dc70f27 /action.c | |
parent | 7348da7e02fae85ad24dd496f1cd8f6385cfcfa8 (diff) | |
download | rsyslog-901270418eca404a1f05c2b5ace66954b8b690b1.tar.gz rsyslog-901270418eca404a1f05c2b5ace66954b8b690b1.tar.xz rsyslog-901270418eca404a1f05c2b5ace66954b8b690b1.zip |
add OMSR_TPL_AS_JSON mode for output modules (interface only)
This patch does NOT contain any implementation, this will happen
next. Thanks to Miloslav Trmac, who suggested a similar mode, which
I based the JSON idea on.
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_JSON_PASSING: + // TODO: implement + 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_JSON_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_JSON) { + pAction->eParamPassing = ACT_JSON_PASSING; } else { pAction->eParamPassing = ACT_STRING_PASSING; } |