aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-seekable-substream.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-29 23:57:11 +0800
committerDan Winship <danw@src.gnome.org>2000-04-29 23:57:11 +0800
commit18903e6b226aa9f18e1fd25450b2b463dd2a4801 (patch)
treefa0d21c0756de5c6decca25d8608516fba59bd16 /camel/camel-seekable-substream.c
parent4e9fab3ba3a1b55ef924ae4332bf43e7fc3d12ba (diff)
downloadgsoc2013-evolution-18903e6b226aa9f18e1fd25450b2b463dd2a4801.tar.gz
gsoc2013-evolution-18903e6b226aa9f18e1fd25450b2b463dd2a4801.tar.zst
gsoc2013-evolution-18903e6b226aa9f18e1fd25450b2b463dd2a4801.zip
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
Diffstat (limited to 'camel/camel-seekable-substream.c')
-rw-r--r--camel/camel-seekable-substream.c5
1 files changed, 3 insertions, 2 deletions
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