Re: Converting clib FILE stream in GFileInputStream



Am Montag, den 09.11.2009, 15:05 -0600 schrieb Shaun McCance:
> On Mon, 2009-11-09 at 21:44 +0100, Martin Kalbfuß wrote:
> > Hi again.
> > 
> > Is it possible to convert a stadnard FILE stream into an
> > GFileInputStream and vice versa? The allegro library has functions to
> > read/write bitmaps in different formats to/from a FILE stream. I would
> > like to use this functions on GFileStreams.
> 
> Do you really need a GFileInputStream, or just some sort of
> GInputStream?  To get an input stream from a file descriptor,
> there's GUnixInputStream:
> 
> http://library.gnome.org/devel/gio/stable/GUnixInputStream.html
> 
> --
> Shaun
> 
> 

Thanks Shaun.

Wouldn't that be platform specific? I'm new to the GTK+ world so I'm
still confused about which file to use. Currently that's even not that
important, because the other library I use has it's own stream type like
GIO has and it hasn't the ability to convert it to a standard file
stream. So mixing the two APIs isn't possible. What a shame.



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