Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib/istream-seekable.h @ 6410:e4eb71ae8e96 HEAD
Changed .h ifdef/defines to use <NAME>_H format.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 11:31:27 +0300 |
parents | 6c0bfc35af03 |
children | 82949209612e |
rev | line source |
---|---|
6410
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
6142
diff
changeset
|
1 #ifndef ISTREAM_SEEKABLE_H |
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
6142
diff
changeset
|
2 #define ISTREAM_SEEKABLE_H |
3244
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 |