diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-22 16:39:58 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-22 16:39:58 +0200 |
commit | e4b3f6d287d74b34d27b4e296c33cb3f1294a58c (patch) | |
tree | dd75cbbc5f857ccdb6d835fb2bf850ed1527b6ff /runtime/queue.h | |
parent | 7667845bd72b6f92eabc975318a4f288a77f2630 (diff) | |
download | rsyslog-e4b3f6d287d74b34d27b4e296c33cb3f1294a58c.tar.gz rsyslog-e4b3f6d287d74b34d27b4e296c33cb3f1294a58c.tar.xz rsyslog-e4b3f6d287d74b34d27b4e296c33cb3f1294a58c.zip |
now batches are handed down to the actual consumer
... but the action consumer does not do anything really intelligent
with them. But the DA consumer is already done, as is the
main message queue consumer.
Diffstat (limited to 'runtime/queue.h')
-rw-r--r-- | runtime/queue.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/queue.h b/runtime/queue.h index 7ecb9294..4fb57d07 100644 --- a/runtime/queue.h +++ b/runtime/queue.h @@ -100,11 +100,10 @@ typedef struct queue_s { * the user really wanted...). -- rgerhards, 2008-04-02 */ /* end dequeue time window */ - rsRetVal (*pConsumer)(void *,void*); /* user-supplied consumer function for dequeued messages */ + rsRetVal (*pConsumer)(void *,aUsrp_t*); /* user-supplied consumer function for dequeued messages */ /* calling interface for pConsumer: arg1 is the global user pointer from this structure, arg2 is the - * user pointer that was dequeued (actual sample: for actions, arg1 is the pAction and arg2 is pointer - * to message) - * rgerhards, 2008-01-28 + * user pointer array that was dequeued (actual sample: for actions, arg1 is the pAction and arg2 + * is pointer to an array of message message pointers) */ /* type-specific handlers (set during construction) */ rsRetVal (*qConstruct)(struct queue_s *pThis); @@ -185,7 +184,7 @@ rsRetVal qqueueStart(qqueue_t *pThis); rsRetVal qqueueSetMaxFileSize(qqueue_t *pThis, size_t iMaxFileSize); rsRetVal qqueueSetFilePrefix(qqueue_t *pThis, uchar *pszPrefix, size_t iLenPrefix); rsRetVal qqueueConstruct(qqueue_t **ppThis, queueType_t qType, int iWorkerThreads, - int iMaxQueueSize, rsRetVal (*pConsumer)(void*,void*)); + int iMaxQueueSize, rsRetVal (*pConsumer)(void*,aUsrp_t*)); PROTOTYPEObjClassInit(qqueue); PROTOTYPEpropSetMeth(qqueue, iPersistUpdCnt, int); PROTOTYPEpropSetMeth(qqueue, iDeqtWinFromHr, int); |