annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3244
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 #ifndef __ISTREAM_SEEKABLE_H
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2 #define __ISTREAM_SEEKABLE_H
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 /* Create a seekable stream from given NULL-terminated list of input streams.
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
5 Try to keep it in memory, but use a temporary file if it's too large.
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 temp_prefix is used as path and filename prefix for creating the file.
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 It will be appended by PID, timestamp and 128 bits of weak randomness. */
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 struct istream *
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 i_stream_create_seekable(struct istream *input[], pool_t pool,
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 size_t max_buffer_size, const char *temp_prefix);
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12
f104e4197ac1 Added istream-seekable, which allows combining multiple input streams and
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 #endif