diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-09 18:54:20 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-09 18:54:20 +0000 |
commit | dee5485ade5b77748f2cebcd6b65ea71f01123f8 (patch) | |
tree | f4fb68a599e3ee0d0c41dc5a66b15a79e6255632 /stream.h | |
parent | aa7e00d8e1a1d67fa2860623ffab75bd387faffc (diff) | |
download | rsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.tar.gz rsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.tar.xz rsyslog-dee5485ade5b77748f2cebcd6b65ea71f01123f8.zip |
some cleanup on object model
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |