summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-09 18:54:20 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-09 18:54:20 +0000
commitdee5485ade5b77748f2cebcd6b65ea71f01123f8 (patch)
treef4fb68a599e3ee0d0c41dc5a66b15a79e6255632 /stream.h
parentaa7e00d8e1a1d67fa2860623ffab75bd387faffc (diff)
downloadrsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.tar.gz
rsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.tar.xz
rsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.zip
some cleanup on object model
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/stream.h b/stream.h
index a8ace8a6..dd8f7d5b 100644
--- a/stream.h
+++ b/stream.h
@@ -43,7 +43,7 @@
#define STREAM_H_INCLUDED
#include <pthread.h>
-#include "obj.h"
+#include "obj-types.h"
#include "stream.h"
/* stream types */
@@ -52,7 +52,7 @@ typedef enum {
} strmType_t;
/* The strm_t data structure */
-typedef struct {
+typedef struct strm_s {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
strmType_t sType;
int fd; /* the file descriptor, -1 if closed */
@@ -86,7 +86,9 @@ rsRetVal strmWrite(strm_t *pThis, uchar *pBuf, size_t lenBuf);
rsRetVal strmNextFile(strm_t *pThis);
rsRetVal strmOpenFile(strm_t *pThis, int flags, mode_t mode);
rsRetVal strmSetFilePrefix(strm_t *pThis, uchar *pszPrefix, size_t iLenPrefix);
+rsRetVal strmSetDir(strm_t *pThis, uchar *pszDir, size_t iLenDir);
PROTOTYPEObjClassInit(strm);
PROTOTYPEpropSetMeth(strm, bDeleteOnClose, int);
+PROTOTYPEpropSetMeth(strm, iMaxFileSize, int);
#endif /* #ifndef STREAM_H_INCLUDED */