dovecot-2.0: Added i_stream_get_max_buffer_size().
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 12 20:47:05 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/136ce9b2e039
changeset: 11992:136ce9b2e039
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 12 18:45:52 2010 +0100
description:
Added i_stream_get_max_buffer_size().
diffstat:
src/lib/istream.c | 5 +++++
src/lib/istream.h | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r 11538925cbbb -r 136ce9b2e039 src/lib/istream.c
--- a/src/lib/istream.c Thu Aug 12 17:59:03 2010 +0100
+++ b/src/lib/istream.c Thu Aug 12 18:45:52 2010 +0100
@@ -80,6 +80,11 @@
io_stream_set_max_buffer_size(&stream->real_stream->iostream, max_size);
}
+size_t i_stream_get_max_buffer_size(struct istream *stream)
+{
+ return stream->real_stream->max_buffer_size;
+}
+
void i_stream_set_return_partial_line(struct istream *stream, bool set)
{
stream->real_stream->return_nolf_line = set;
diff -r 11538925cbbb -r 136ce9b2e039 src/lib/istream.h
--- a/src/lib/istream.h Thu Aug 12 17:59:03 2010 +0100
+++ b/src/lib/istream.h Thu Aug 12 18:45:52 2010 +0100
@@ -72,6 +72,8 @@
/* Change the maximum size for stream's input buffer to grow. Useful only
for buffered streams (currently only file). */
void i_stream_set_max_buffer_size(struct istream *stream, size_t max_size);
+/* Returns the current max. buffer size. */
+size_t i_stream_get_max_buffer_size(struct istream *stream);
/* Enable/disable i_stream[_read]_next_line() returning the last line if it
doesn't end with LF. */
void i_stream_set_return_partial_line(struct istream *stream, bool set);
More information about the dovecot-cvs
mailing list