Re: porting C methods to gnome-vfs



Hi,

On Wed, 28 Apr 2004 03:27:20 +0200, Colin Walters wrote:
> On Mon, 2004-04-26 at 12:39, Venkatakrishnan Kannan wrote:
> > Hi,
> >  
> >  I am trying to port an application to gnome vfs. 
> >  Are there any gnome vfs counterparts for some of the
> > standard File Methods like fgets, fputs, fdopen,
> > setvbuf, fflush or do we need to write our own methods
> > for these..? 
> 
> gnome-vfs doesn't do any buffering, so there is no equivalent for the
> buffered C library functions like fgets, fdopen, and fflush.  All
> gnome-vfs replaces is the low-level C library functions like open, read,
> and write.

You can use GIOChannel providing the buffering over GnomeVFSHandle.
There is some General-I/O layer GOIO provided at
	http://bugzilla.gnome.org/show_bug.cgi?id=106686
or you can also use my implementation at (noted in the Bug above)
	http://cvs.jankratochvil.net/viewcvs/captive/src/client/gnomevfs/giognomevfs.c?rev=HEAD
	http://cvs.jankratochvil.net/viewcvs/captive/src/client/gnomevfs/giognomevfs.h?rev=HEAD


Regards,
Lace



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]