summaryrefslogtreecommitdiffstats
path: root/queue.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-09 08:58:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-09 08:58:06 +0000
commitbff48ee5ed9b1ce7ce18792cdf07066ceb89da25 (patch)
treea757f38322a138ae1a9ff23e20bc4ea7a8cb57f5 /queue.h
parent854c4732f87076dca363bd45ebcfa60bdf034347 (diff)
downloadrsyslog-bff48ee5ed9b1ce7ce18792cdf07066ceb89da25.tar.gz
rsyslog-bff48ee5ed9b1ce7ce18792cdf07066ceb89da25.tar.xz
rsyslog-bff48ee5ed9b1ce7ce18792cdf07066ceb89da25.zip
implemented queue object method to set the file name prefix
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/queue.h b/queue.h
index a2c904cc..76b282be 100644
--- a/queue.h
+++ b/queue.h
@@ -78,6 +78,18 @@ typedef struct queue_s {
pthread_mutex_t *mut;
pthread_cond_t *notFull, *notEmpty;
/* end sync variables */
+ /* the following variables are always present, because they
+ * are not only used for the "disk" queueing mode but also for
+ * any other queueing mode if it is set to "disk assisted".
+ * rgerhards, 2008-01-09
+ */
+ uchar *pszSpoolDir;
+ size_t lenSpoolDir;
+ uchar *pszFilePrefix;
+ size_t lenFilePrefix;
+ int iNumberFiles; /* how many files make up the queue? */
+ size_t iMaxFileSize; /* max size for a single queue file */
+ /* now follow queueing mode specific data elements */
union { /* different data elements based on queue type (qType) */
struct {
long head, tail;
@@ -88,12 +100,6 @@ typedef struct queue_s {
qLinkedList_t *pLast;
} linklist;
struct {
- uchar *pszSpoolDir;
- size_t lenSpoolDir;
- uchar *pszFilePrefix;
- size_t lenFilePrefix;
- int iNumberFiles; /* how many files make up the queue? */
- size_t iMaxFileSize; /* max size for a single queue file */
queueFileDescription_t fWrite; /* current file to be written */
queueFileDescription_t fRead; /* current file to be read */
} disk;