Asynchronously connects to the message bus specified by @bus_type.
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.
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
g_content_type_set_mime_dirs() 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
None
, 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 g_content_type_is_a().
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
None
, 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.
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 g_dbus_escape_object_path_bytestring().
Generate a D-Bus GUID that can be used with
e.g. g_dbus_connection_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.
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 g_dbus_is_address() 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.
Converts errno.h
error codes into GIO error codes.
Scans all the modules in the specified directory, ensuring that
any extension point implemented by a module is registered.
Creates a keyfile-backed #GSettingsBackend.
Creates a memory-backed #GSettingsBackend.
Creates a readonly #GSettingsBackend.
Returns all the names of children at the specified @path in the set of
globally registered resources.
Looks for a file at the specified @path in the set of
globally registered resources and if found returns information about it.
Returns whether the specified @path in the set of
globally registered resources has children.
Looks for a file at the specified @path in the set of
globally registered resources and returns a
glib::Bytes
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
InputStream
that lets you read the data.
Registers the resource with the process-global set of resources.
Unregisters the resource from the process-global set of resources.
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.