# HG changeset patch # User Timo Sirainen # Date 1289835062 0 # Node ID 236ed6d5b391ab6723c669517ab01b79cff5cd53 # Parent dbcbf6a4671063e8e6e62a0cb6978df5f8379091 istream: Exported i_stream_default_seek() diff -r dbcbf6a46710 -r 236ed6d5b391 src/lib/istream-internal.h --- a/src/lib/istream-internal.h Mon Nov 15 15:19:13 2010 +0000 +++ b/src/lib/istream-internal.h Mon Nov 15 15:31:02 2010 +0000 @@ -55,5 +55,7 @@ bool i_stream_get_buffer_space(struct istream_private *stream, size_t wanted_size, size_t *size_r); ssize_t i_stream_read_copy_from_parent(struct istream *istream); +void i_stream_default_seek(struct istream_private *stream, + uoff_t v_offset, bool mark); #endif diff -r dbcbf6a46710 -r 236ed6d5b391 src/lib/istream.c --- a/src/lib/istream.c Mon Nov 15 15:19:13 2010 +0000 +++ b/src/lib/istream.c Mon Nov 15 15:31:02 2010 +0000 @@ -534,9 +534,8 @@ i_stream_unref(&_stream->parent); } -static void -i_stream_default_seek(struct istream_private *stream, - uoff_t v_offset, bool mark ATTR_UNUSED) +void i_stream_default_seek(struct istream_private *stream, + uoff_t v_offset, bool mark ATTR_UNUSED) { size_t available; @@ -559,6 +558,7 @@ } } } + static const struct stat * i_stream_default_stat(struct istream_private *stream, bool exact ATTR_UNUSED) {