Re: Question about TnyVfsStream
- From: Philip Van Hoof <spam pvanhoof be>
- To: Alberto Garcia <agarcia igalia com>
- Cc: tinymail-devel-list gnome org
- Subject: Re: Question about TnyVfsStream
- Date: Sat, 15 Mar 2008 02:02:16 +0100
On Sat, 2008-03-15 at 01:26 +0100, Alberto Garcia wrote:
> On Fri, Mar 14, 2008 at 09:56:31PM +0100, Philip Van Hoof wrote:
> 
> > > In tny_vfs_seek() shouldn't we set priv->position = 0 after a
> > > successful seek ?
> > No, it must be set to real, which is the position we set the
> > GnomeVFS stream to.
> > 
> > I don't know why you think setting it to 0 would be right?!
> 
> I meant in tny_vfs_reset(), sorry
Only if the GnomeVFS handle's position is actually set to 0 too, else
reset should return -1 and the existing position should remain.
 
If that's not the behaviour, then that sounds wrong.
-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]