diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-09 17:25:07 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-09 17:25:07 +0000 |
commit | aa7e00d8e1a1d67fa2860623ffab75bd387faffc (patch) | |
tree | bf8d5fbf99050a010c1918d8a3a1168cdb43fe84 /stream.h | |
parent | fd8c6452c8a4d51d39eb511046fca09391138a22 (diff) | |
download | rsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.tar.gz rsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.tar.xz rsyslog-aa7e00d8e1a1d67fa2860623ffab75bd387faffc.zip |
changed queue class to use stream class
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -75,9 +75,18 @@ typedef struct { #define STRM_IOBUF_SIZE 4096 /* size of the IO buffer */ /* prototypes */ +rsRetVal strmConstruct(strm_t **ppThis); +rsRetVal strmConstructFinalize(strm_t __attribute__((unused)) *pThis); rsRetVal strmDestruct(strm_t *pThis); rsRetVal strmSetMaxFileSize(strm_t *pThis, size_t iMaxFileSize); rsRetVal strmSetFilePrefix(strm_t *pThis, uchar *pszPrefix, size_t iLenPrefix); +rsRetVal strmReadChar(strm_t *pThis, uchar *pC); +rsRetVal strmUnreadChar(strm_t *pThis, uchar c); +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); PROTOTYPEObjClassInit(strm); +PROTOTYPEpropSetMeth(strm, bDeleteOnClose, int); #endif /* #ifndef STREAM_H_INCLUDED */ |