summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-10 07:03:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-10 07:03:22 +0000
commitc247f4e02771960f5c880dc50a3003f786faefac (patch)
treed1c5079827af77c703b77de5d6199174242e0ce2 /stream.h
parentdee5485ade5b77748f2cebcd6b65ea71f01123f8 (diff)
downloadrsyslog-c247f4e02771960f5c880dc50a3003f786faefac.tar.gz
rsyslog-c247f4e02771960f5c880dc50a3003f786faefac.tar.xz
rsyslog-c247f4e02771960f5c880dc50a3003f786faefac.zip
changed queue file name generation (to be more generic)
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index dd8f7d5b..f31be44e 100644
--- a/stream.h
+++ b/stream.h
@@ -71,6 +71,7 @@ typedef struct strm_s {
int iModeOpenOS;
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 */
} strm_t;
#define STRM_IOBUF_SIZE 4096 /* size of the IO buffer */
@@ -90,5 +91,6 @@ rsRetVal strmSetDir(strm_t *pThis, uchar *pszDir, size_t iLenDir);
PROTOTYPEObjClassInit(strm);
PROTOTYPEpropSetMeth(strm, bDeleteOnClose, int);
PROTOTYPEpropSetMeth(strm, iMaxFileSize, int);
+PROTOTYPEpropSetMeth(strm, iMaxFiles, int);
#endif /* #ifndef STREAM_H_INCLUDED */