summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-09 17:25:07 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-09 17:25:07 +0000
commitaa7e00d8e1a1d67fa2860623ffab75bd387faffc (patch)
treebf8d5fbf99050a010c1918d8a3a1168cdb43fe84 /stream.h
parentfd8c6452c8a4d51d39eb511046fca09391138a22 (diff)
downloadrsyslog-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 5c9451cd..a8ace8a6 100644
--- a/stream.h
+++ b/stream.h
@@ -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 */