diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 2000-02-17 02:04:40 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-17 02:04:40 +0800 |
commit | 7f04720b1efe9baea8770813e85cb17cd600d077 (patch) | |
tree | a4749e3ecc075439dddf3928584a88b8d11d3e76 /camel/camel-stream-fs.c | |
parent | d2239da3e7758ed99263b6623ab258561e10994d (diff) | |
download | gsoc2013-evolution-7f04720b1efe9baea8770813e85cb17cd600d077.tar.gz gsoc2013-evolution-7f04720b1efe9baea8770813e85cb17cd600d077.tar.zst gsoc2013-evolution-7f04720b1efe9baea8770813e85cb17cd600d077.zip |
don't seek the begining of the substream. (_eos): fix eos condition
2000-02-16 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-seekable-substream.c (_set_bounds): don't
seek the begining of the substream.
(_eos): fix eos condition testing.
(_finalize): unref parent stream
(_init_with_seekable_stream_and_bounds): ref parent stream
* camel/gstring-util.c (g_string_equal_for_hash):
(g_string_equal_for_glist): return type is int.
* camel/camel.h:
* camel/camel.c (camel_init): use (void)
instead of ().
A lot of other small changes to make the set_input_stream
scheme work. It actually works.
svn path=/trunk/; revision=1798
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r-- | camel/camel-stream-fs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 6c50282e33..d6ba5fba13 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -481,11 +481,12 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy) gint real_offset; CamelStreamFs *stream_fs = CAMEL_STREAM_FS (stream); +#if 0 /* because we don't know what is going to happen, we set the eof stream to false so that a reread can occur */ stream_fs->eof = FALSE; - +#endif switch (policy) { case CAMEL_STREAM_SET: real_offset = MAX (stream_fs->inf_bound + offset, stream_fs->inf_bound); @@ -525,7 +526,10 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy) + printf ("***** Seeking : real_offset=%d, whence=%d\n", real_offset, whence); return_position = lseek (stream_fs->fd, real_offset, whence) - stream_fs->inf_bound; + printf ("*** *** *** *** ***\n"); + CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position; |