GIO (software)

GIO (Gnome Input/Output) is a library, designed to present programmers with a modern and usable interface to a virtual file system. It allows applications to access local and remote files with a single consistent API, which was designed "to overcome the shortcomings of GnomeVFS" and be "so good that developers prefer it over raw POSIX calls."[2]

GIO
Developer(s)The GNOME Project
Stable release2.64.4 (July 2, 2020 (2020-07-02)) [±][1]
Written inC
TypeSystem library
LicenseGNU Lesser General Public License
Websitedeveloper.gnome.org/gio/stable/
As the GNU C Library serves as a wrapper for Linux kernel system calls, so do the libraries bundled in GLib (GObject, Glib, GModule, GThread and GIO) serve as further wrappers for their specific tasks.
Simplified software architecture of GTK+. Pango, GDK, ATK, GIO, Cairo and GLib.

GIO serves as low-level system library for the GNOME Shell/GNOME/GTK+ software stack and is being developed by The GNOME Project. It is maintained as a separate library, libgio-2.0, but it is bundled with GLib. GIO is free and open-source software subject to the requirements of the GNU Lesser General Public License.

Features

  • The abstract file system model of GIO consists of a number of interfaces and base classes for I/O and files.
  • There are a number of stream classes, similar to the input and output stream hierarchies that can be found in frameworks like Java.
  • There are interfaces related to applications and the types of files they handle.
  • There is a framework for storing and retrieving application settings.
  • file type detection with xdgmime (xdg = X Desktop Group = freedesktop.org)[3]
  • file monitoring with inotify[4]
  • file monitoring with FAM[5]
  • There is support for network programming, including name resolution, lowlevel socket APIs and highlevel client and server helper classes.
  • There is support for connecting to D-Bus, sending and receiving messages, owning and watching bus names, and making objects available on the bus.

Beyond these, GIO provides facilities for file monitoring, asynchronous I/O and filename completion. In addition to the interfaces, GIO provides implementations for the local case. Implementations for various network file systems are provided by the GVfs package as loadable modules.

gollark: WRONG.
gollark: How about, electric shocks every 10 seconds?
gollark: You *can* fall asleep while walking if you're really tired.
gollark: See, if you suffer burns, you will feel more alert and awake, yes?
gollark: Probably.

See also

  • KIO – an analogous KDE library
  • gVFS – a user-space virtual filesystem relying on GIO
  • GnomeVFS – the older Gnome library for the same purposes

References

  1. Withnall, Philip (2 July 2020). "glib 2.64.4". GNOME ftp-release (Mailing list). Retrieved 14 August 2020.
  2. "GIO Reference Manual".
  3. "xdgmime in GIO git".
  4. "inotify in GIO git".
  5. "FAM in GIO git".
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.