Re: Converting clib FILE stream in GFileInputStream



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




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