diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-10 11:34:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-09-10 11:34:31 +0200 |
commit | ea9c81ce3c512d1835e323ef7e817014e109b25a (patch) | |
tree | d6eeb83951cc3d60f0c654ffbb19a84a64d3aaa7 /runtime/stream.h | |
parent | dc02a38d512029e5ba0d2a1bbff7d919f9c86d7e (diff) | |
download | rsyslog-ea9c81ce3c512d1835e323ef7e817014e109b25a.tar.gz rsyslog-ea9c81ce3c512d1835e323ef7e817014e109b25a.tar.bz2 rsyslog-ea9c81ce3c512d1835e323ef7e817014e109b25a.zip |
imfile: support LF escaping in read mode 1
Diffstat (limited to 'runtime/stream.h')
-rw-r--r-- | runtime/stream.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/stream.h b/runtime/stream.h index 4f4a4301..092d3226 100644 --- a/runtime/stream.h +++ b/runtime/stream.h @@ -66,6 +66,7 @@ #define STREAM_H_INCLUDED #include <pthread.h> +#include <stdint.h> #include "obj-types.h" #include "glbl.h" #include "stream.h" @@ -188,7 +189,7 @@ BEGINinterface(strm) /* name must also be changed in ENDinterface macro! */ INTERFACEpropSetMeth(strm, iFlushInterval, int); INTERFACEpropSetMeth(strm, pszSizeLimitCmd, uchar*); /* v6 added */ - rsRetVal (*ReadLine)(strm_t *pThis, cstr_t **ppCStr, int mode); + rsRetVal (*ReadLine)(strm_t *pThis, cstr_t **ppCStr, uint8_t mode, sbool bEscapeLF); /* v7 added 2012-09-14 */ INTERFACEpropSetMeth(strm, bVeryReliableZip, int); /* v8 added 2013-03-21 */ @@ -197,7 +198,8 @@ BEGINinterface(strm) /* name must also be changed in ENDinterface macro! */ INTERFACEpropSetMeth(strm, cryprov, cryprov_if_t*); INTERFACEpropSetMeth(strm, cryprovData, void*); ENDinterface(strm) -#define strmCURR_IF_VERSION 9 /* increment whenever you change the interface structure! */ +#define strmCURR_IF_VERSION 10 /* increment whenever you change the interface structure! */ +/* V10, 2013-09-10: added new parameter bEscapeLF, changed mode to uint8_t (rgerhards) */ static inline int strmGetCurrFileNum(strm_t *pStrm) { |