From 18903e6b226aa9f18e1fd25450b2b463dd2a4801 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 29 Apr 2000 15:57:11 +0000 Subject: camel_mime_parser_tell() returns an offset from where it started parsing, * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): camel_mime_parser_tell() returns an offset from where it started parsing, not necessarily from the start of data. Since we're parsing a bounded seekable_stream, we need to add the stream's starting bound to camel_mime_parser_tell's return value to create the substream in the right place. * camel-seekable-substream.c (camel_seekable_substream_new_with_seekable_stream_and_bounds): say CAMEL_STREAM_UNBOUND rather than -1 in doc. * camel-seekable-stream.c (camel_seekable_stream_seek): Add more info to docs. svn path=/trunk/; revision=2680 --- camel/camel-seekable-substream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel/camel-seekable-substream.c') diff --git a/camel/camel-seekable-substream.c b/camel/camel-seekable-substream.c index 55c44514b7..5b01495be1 100644 --- a/camel/camel-seekable-substream.c +++ b/camel/camel-seekable-substream.c @@ -125,8 +125,9 @@ init_with_seekable_stream_and_bounds (CamelSeekableSubstream *seekable_substream * @sup_bound: an upper bound * * Creates a new CamelSeekableSubstream that references the portion - * of @parent_stream from @inf_bound to @sup_bound. (If @sup_bound is -1, - * it references to the end of stream, even if the stream grows.) + * of @parent_stream from @inf_bound to @sup_bound. (If @sup_bound is + * #CAMEL_STREAM_UNBOUND, it references to the end of stream, even if + * the stream grows.) * * While the substream is open, the caller cannot assume anything about * the current position of @parent_stream. After the substream has been -- cgit