annotate src/lib/istream-seekable.h @ 6142:6c0bfc35af03 HEAD

Removed memory pool parameter from iostreams. Default pool was almost always used, and the stream usually required destroying anyway so it didn't even make freeing memory easier.
author Timo Sirainen <tss@iki.fi>
date Tue, 24 Jul 2007 06:59:56 +0300
parents f104e4197ac1
children e4eb71ae8e96
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 *
6142
6c0bfc35af03 Removed memory pool parameter from iostreams. Default pool was almost always
Timo Sirainen <tss@iki.fi>
parents: 3244
diff changeset
10 i_stream_create_seekable(struct istream *input[],
3244
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