istream-limit.c revision 34ce7c45264902e217bfb5fa7f7a0aace9302074
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainen/* Copyright (C) 2003 Timo Sirainen */
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainenstatic void _close(struct _iostream *stream __attr_unused__)
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainen struct limit_istream *lstream = (struct limit_istream *) stream;
94f9cf3436f949d6450e8cda523979fc1b11f103Timo Sirainen /* get to same position in parent stream */
94f9cf3436f949d6450e8cda523979fc1b11f103Timo Sirainen i_stream_seek(lstream->input, lstream->v_start_offset +
94f9cf3436f949d6450e8cda523979fc1b11f103Timo Sirainenstatic void _set_max_buffer_size(struct _iostream *stream, size_t max_size)
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainen struct limit_istream *lstream = (struct limit_istream *) stream;
48f78a48f2e1cf299026544444666471ae16ad97Timo Sirainen i_stream_set_max_buffer_size(lstream->input, max_size);
ret = 0;
return ret;