diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-10 08:00:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-10 08:00:47 +0000 |
commit | 24c125cfc3032e6269e6e5de91c72c91508adde0 (patch) | |
tree | a3f86f5dc3ff9e23c46f845bdb64e0a50ae84a24 /stream.h | |
parent | 2dccfb6780c89cf9ac5e215afd7d2a18ee211840 (diff) | |
download | rsyslog-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |