diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 12:24:29 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-05 12:24:29 +0100 |
commit | 9b2e8c53fd08950eb397de0aedbc40e49e5a701a (patch) | |
tree | 61c4deea01b373f84a4a5c372bcb2a002d218b37 /runtime/queue.h | |
parent | 28b174e73c0d70be1a285b8b54c8904c3670cc0b (diff) | |
download | rsyslog-9b2e8c53fd08950eb397de0aedbc40e49e5a701a.tar.gz rsyslog-9b2e8c53fd08950eb397de0aedbc40e49e5a701a.tar.bz2 rsyslog-9b2e8c53fd08950eb397de0aedbc40e49e5a701a.zip |
refactor bShutdownImmediate handling
Diffstat (limited to 'runtime/queue.h')
-rw-r--r-- | runtime/queue.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/queue.h b/runtime/queue.h index 45eac45d..e5eef168 100644 --- a/runtime/queue.h +++ b/runtime/queue.h @@ -103,11 +103,10 @@ struct queue_s { * the user really wanted...). -- rgerhards, 2008-04-02 */ /* end dequeue time window */ - rsRetVal (*pConsumer)(void *,batch_t*, wti_t*,int*); /* user-supplied consumer function for dequeued messages */ + rsRetVal (*pConsumer)(void *,batch_t*, wti_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 array that was dequeued (actual sample: for actions, arg1 is the pAction and arg2 - * is pointer to an array of message message pointers), arg3 is a pointer to an interger which is zero - * during normal operations and one if the consumer must urgently shut down. + * is pointer to an array of message message pointers) */ /* type-specific handlers (set during construction) */ rsRetVal (*qConstruct)(struct queue_s *pThis); @@ -201,7 +200,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*,batch_t*, wti_t *, int*)); + int iMaxQueueSize, rsRetVal (*pConsumer)(void*,batch_t*, wti_t *)); int queueCnfParamsSet(struct nvlst *lst); rsRetVal qqueueApplyCnfParam(qqueue_t *pThis, struct nvlst *lst); void qqueueSetDefaultsRulesetQueue(qqueue_t *pThis); |