Asynchronously connects to the message bus specified by bus_type.
Finishes an operation started with gio.global.busGet.
Synchronously connects to the message bus specified by bus_type. Note that the returned object may shared with other callers, e.g. if two separate parts of a process calls this function with the same bus_type, they will share the same object.
Version of gio.global.busOwnName using closures instead of callbacks for easier binding in other languages.
Version of gio.global.busOwnNameOnConnection using closures instead of callbacks for easier binding in other languages.
Stops owning a name.
Stops watching a name.
Version of gio.global.busWatchName using closures instead of callbacks for easier binding in other languages.
Version of gio.global.busWatchNameOnConnection using closures instead of callbacks for easier binding in other languages.
Checks if a content type can be executable. Note that for instance things like text files can be executables (i.e. scripts and batch files).
Compares two content types for equality.
Tries to find a content type based on the mime type name.
Gets the human readable description of the content type.
Gets the generic icon name for a content type.
Gets the icon for a content type.
Get the list of directories which MIME data is loaded from. See gio.global.contentTypeSetMimeDirs for details.
Gets the mime type for the content type, if one is registered.
Gets the symbolic icon for a content type.
Guesses the content type based on example data. If the function is uncertain, result_uncertain will be set to true. Either filename or data may be null, in which case the guess will be based solely on the other argument.
Tries to guess the type of the tree with root root, by looking at the files it contains. The result is an array of content types, with the best guess coming first.
Determines if type is a subset of supertype.
Determines if type is a subset of mime_type. Convenience wrapper around gio.global.contentTypeIsA.
Checks if the content type is the generic "unknown" type. On UNIX this is the "application/octet-stream" mimetype, while on win32 it is "*" and on OSX it is a dynamic type or octet-stream.
Set the list of directories used by GIO to load the MIME database. If dirs is null, the directories used are the default:
Gets a list of strings containing all the registered content types known to the system. The list and its data should be freed using g_list_free_full (list, g_free).
Escape string so it can appear in a D-Bus address as the value part of a key-value pair.
Synchronously looks up the D-Bus address for the well-known message bus instance specified by bus_type. This may involve using various platform specific mechanisms.
Asynchronously connects to an endpoint specified by address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. address must be in the D-Bus address format.
Finishes an operation started with gio.global.dbusAddressGetStream.
Synchronously connects to an endpoint specified by address and sets up the connection so it is in a state to run the client-side of the D-Bus authentication conversation. address must be in the D-Bus address format.
This is a language binding friendly version of gio.global.dbusEscapeObjectPathBytestring.
Escapes bytes for use in a D-Bus object path component. bytes is an array of zero or more nonzero bytes in an unspecified encoding, followed by a single zero byte.
Generate a D-Bus GUID that can be used with e.g. gio.dbus_connection.DBusConnection.new_.
Converts a #GValue to a #GVariant of the type indicated by the type parameter.
Converts a #GVariant to a #GValue. If value is floating, it is consumed.
Checks if string is a D-Bus address.
Check whether string is a valid D-Bus error name.
Checks if string is a D-Bus GUID.
Checks if string is a valid D-Bus interface name.
Checks if string is a valid D-Bus member (e.g. signal or method) name.
Checks if string is a valid D-Bus bus name (either unique or well-known).
Like gio.global.dbusIsAddress but also checks if the library supports the transports in string and that key/value pairs for each transport are valid. See the specification of the D-Bus address format.
Checks if string is a valid D-Bus unique bus name.
Unescapes an string that was previously escaped with gio.global.dbusEscapeObjectPath. If the string is in a format that could not have been returned by gio.global.dbusEscapeObjectPath, this function returns null.
Converts errno.h error codes into GIO error codes.
Converts #GFileError error codes into GIO error codes.
Gets the GIO Error Quark.
Scans all the modules in the specified directory, ensuring that any extension point implemented by a module is registered.
Scans all the modules in the specified directory, ensuring that any extension point implemented by a module is registered.
Cancels all cancellable I/O jobs.
Schedules the I/O job to run in another thread.
Creates a keyfile-backed #GSettingsBackend.
Creates a memory-backed #GSettingsBackend.
Initializes the platform networking libraries (eg, on Windows, this calls WSAStartup()). GLib will call this itself if it is needed, so you only need to call it if you directly call system networking functions (without calling any GLib networking functions first).
Creates a readonly #GSettingsBackend.
Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource that expects a callback of type #GPollableSourceFunc. The new source does not actually do anything on its own; use glib.source.Source.addChildSource to add other sources to it to cause it to trigger.
Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource, as with gio.global.pollableSourceNew, but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.
Tries to read from stream, as with gio.input_stream.InputStream.read (if blocking is true) or gio.pollable_input_stream.PollableInputStream.readNonblocking (if blocking is false). This can be used to more easily share code between blocking and non-blocking implementations of a method.
Tries to write to stream, as with gio.output_stream.OutputStream.write (if blocking is true) or gio.pollable_output_stream.PollableOutputStream.writeNonblocking (if blocking is false). This can be used to more easily share code between blocking and non-blocking implementations of a method.
Tries to write count bytes to stream, as with gio.output_stream.OutputStream.writeAll, but using gio.global.pollableStreamWrite rather than gio.output_stream.OutputStream.write.
Returns all the names of children at the specified path in the set of globally registered resources. The return result is a null terminated list of strings which should be released with glib.global.strfreev.
Looks for a file at the specified path in the set of globally registered resources and if found returns information about it.
Looks for a file at the specified path in the set of globally registered resources and returns a #GBytes that lets you directly access the data in memory.
Looks for a file at the specified path in the set of globally registered resources and returns a #GInputStream that lets you read the data.
Registers the resource with the process-global set of resources. Once a resource is registered the files in it can be accessed with the global resource lookup functions like gio.global.resourcesLookupData.
Unregisters the resource from the process-global set of resources.
Reports an error in an idle function. Similar to gio.global.simpleAsyncReportErrorInIdle, but takes a #GError rather than building a new one.
Determines if mount_path is considered an implementation of the OS. This is primarily used for hiding mountable and mounted volumes that only are used in the OS and has little to no relevance to the casual user.
Determines if device_path is considered a block device path which is only used in implementation of the OS. This is primarily used for hiding mounted volumes that are intended as APIs for programs to read, and system administrators at a shell; rather than something that should, for example, appear in a GUI. For example, the Linux /proc filesystem.
Determines if fs_type is considered a type of file system which is only used in implementation of the OS. This is primarily used for hiding mounted volumes that are intended as APIs for programs to read, and system administrators at a shell; rather than something that should, for example, appear in a GUI. For example, the Linux /proc filesystem.
Gets a #GUnixMountEntry for a given mount path. If time_read is set, it will be filled with a unix timestamp for checking if the mounts have changed since with gio.global.unixMountsChangedSince.
Compares two unix mounts.
Makes a copy of mount_entry.
Gets a #GUnixMountEntry for a given file path. If time_read is set, it will be filled with a unix timestamp for checking if the mounts have changed since with gio.global.unixMountsChangedSince.
Frees a unix mount.
Gets the device path for a unix mount.
Gets the filesystem type for the unix mount.
Gets the mount path for a unix mount.
Gets a comma-separated list of mount options for the unix mount. For example, rw,relatime,seclabel,data=ordered.
Gets the root of the mount within the filesystem. This is useful e.g. for mounts created by bind operation, or btrfs subvolumes.
Guesses whether a Unix mount can be ejected.
Guesses the icon of a Unix mount.
Guesses the name of a Unix mount. The result is a translated string.
Guesses whether a Unix mount should be displayed in the UI.
Guesses the symbolic icon of a Unix mount.
Checks if a unix mount is mounted read only.
Checks if a Unix mount is a system mount. This is the Boolean OR of gio.global.unixIsSystemFsType, gio.global.unixIsSystemDevicePath and gio.global.unixIsMountPathSystemInternal on mount_entry’s properties.
Checks if the unix mount points have changed since a given unix time.
Gets a #GList of #GUnixMountPoint containing the unix mount points. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with gio.global.unixMountPointsChangedSince.
Checks if the unix mounts have changed since a given unix time.
Gets a #GList of #GUnixMountEntry containing the unix mounts. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with gio.global.unixMountsChangedSince.