summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-10 08:00:47 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-10 08:00:47 +0000
commit24c125cfc3032e6269e6e5de91c72c91508adde0 (patch)
treea3f86f5dc3ff9e23c46f845bdb64e0a50ae84a24 /stream.h
parent2dccfb6780c89cf9ac5e215afd7d2a18ee211840 (diff)
downloadrsyslog-24c125cfc3032e6269e6e5de91c72c91508adde0.tar.gz
rsyslog-24c125cfc3032e6269e6e5de91c72c91508adde0.tar.xz
rsyslog-24c125cfc3032e6269e6e5de91c72c91508adde0.zip
made queue file names better readable
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream.h b/stream.h
index f31be44e..1c6ad44a 100644
--- a/stream.h
+++ b/stream.h
@@ -44,6 +44,7 @@
#include <pthread.h>
#include "obj-types.h"
+#include "glbl.h"
#include "stream.h"
/* stream types */
@@ -72,8 +73,9 @@ typedef struct strm_s {
size_t iMaxFileSize;/* maximum size a file may grow to */
int bDeleteOnClose; /* set to 1 to auto-delete on close -- be careful with that setting! */
int iMaxFiles; /* maximum number of files if a circular mode is in use */
+ int iFileNumDigits;/* min number of digits to use in file number (only in circular mode) */
+ size_t sIOBufSize;/* size of IO buffer */
} strm_t;
-#define STRM_IOBUF_SIZE 4096 /* size of the IO buffer */
/* prototypes */
rsRetVal strmConstruct(strm_t **ppThis);
@@ -92,5 +94,6 @@ PROTOTYPEObjClassInit(strm);
PROTOTYPEpropSetMeth(strm, bDeleteOnClose, int);
PROTOTYPEpropSetMeth(strm, iMaxFileSize, int);
PROTOTYPEpropSetMeth(strm, iMaxFiles, int);
+PROTOTYPEpropSetMeth(strm, iFileNumDigits, int);
#endif /* #ifndef STREAM_H_INCLUDED */