Re: gio GUnix* API
Alexander Larsson <[email protected]> Wed, 06 Feb 2008 14:40:46 +0100
| Newsgroups | gmane.comp.gnome.vfs.general |
|---|---|
| Message-ID | <[email protected]> |
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.