gio GUnix* API

View: New views
2 Messages — Rating Filter:   Alert me  

gio GUnix* API

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are these public API that is meant to be used by applications (and
language bindings) directly, or are they just default implementations of
other things?:

GUnixMount
http://library.gnome.org/devel/gio/unstable/gio-Unix-Mounts.html

GUnixInputStream
http://library.gnome.org/devel/gio/unstable/GUnixInputStream.html

GUnixOutputStream:
http://library.gnome.org/devel/gio/unstable/GUnixOutputStream.html

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Re: gio GUnix* API

by Alexander Larsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 2008-02-05 at 12:35 +0100, Murray Cumming wrote:

> Are these public API that is meant to be used by applications (and
> language bindings) directly, or are they just default implementations of
> other things?:
>
> GUnixMount
> http://library.gnome.org/devel/gio/unstable/gio-Unix-Mounts.html
>
> GUnixInputStream
> http://library.gnome.org/devel/gio/unstable/GUnixInputStream.html
>
> GUnixOutputStream:
> http://library.gnome.org/devel/gio/unstable/GUnixOutputStream.html

They are public, unix-specific APIs, in a separate pkg-config file.

GUnixMount is basically a fstab/mtab parser. The main reason its exposed
is that we need to use it in the Hal volume monitor implementation in
gvfs.

GUnixInput/OutputStream is a way to create streams from a unix file
descriptor (typically a pipe or a socket). It was moved to the unix
specific api because using a "int fd" argument is not portable. It is
however used by e.g. gvfs and is quite useful for some things.

_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list