Mercurial > dovecot > original-hg > dovecot-1.2
view 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 source
#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