Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/istream-seekable.h @ 3244:f104e4197ac1 HEAD
Added istream-seekable, which allows combining multiple input streams and
creating a single seekable stream out of them.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 29 Mar 2005 16:30:55 +0300 |
parents | |
children | 6c0bfc35af03 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/lib/istream-seekable.h Tue Mar 29 16:30:55 2005 +0300 @@ -0,0 +1,13 @@ +#ifndef __ISTREAM_SEEKABLE_H +#define __ISTREAM_SEEKABLE_H + +/* Create a seekable stream from given NULL-terminated list of input streams. + Try to keep it in memory, but use a temporary file if it's too large. + + temp_prefix is used as path and filename prefix for creating the file. + It will be appended by PID, timestamp and 128 bits of weak randomness. */ +struct istream * +i_stream_create_seekable(struct istream *input[], pool_t pool, + size_t max_buffer_size, const char *temp_prefix); + +#endif