summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-11 14:34:53 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-11 14:34:53 +0000
commitdd575394dba4f1943a5185a5f40750a4293b7203 (patch)
tree360bdc8e0588c1330b80a4cab8c7ce61b1fd742b /queue.h
parent8dad3997505f71e6e9962892f79d7b7dad0a89ce (diff)
downloadrsyslog-dd575394dba4f1943a5185a5f40750a4293b7203.tar.gz
rsyslog-dd575394dba4f1943a5185a5f40750a4293b7203.tar.xz
rsyslog-dd575394dba4f1943a5185a5f40750a4293b7203.zip
support for object property bags added
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/queue.h b/queue.h
index 56841faf..0fda1e50 100644
--- a/queue.h
+++ b/queue.h
@@ -74,6 +74,7 @@ typedef struct qWrkThrd_s {
/* the queue object */
typedef struct queue_s {
+ BEGINobjInstance;
queueType_t qType;
int iQueueSize; /* Current number of elements in the queue */
int iMaxQueueSize; /* how large can the queue grow? */
@@ -127,6 +128,7 @@ rsRetVal queueSetMaxFileSize(queue_t *pThis, size_t iMaxFileSize);
rsRetVal queueSetFilePrefix(queue_t *pThis, uchar *pszPrefix, size_t iLenPrefix);
rsRetVal queueConstruct(queue_t **ppThis, queueType_t qType, int iWorkerThreads,
int iMaxQueueSize, rsRetVal (*pConsumer)(void*));
+PROTOTYPEObjClassInit(queue);
PROTOTYPEpropSetMeth(queue, bImmediateShutdown, int);
#define queueGetID(pThis) ((unsigned long) pThis)