-
public bool g_content_type_can_be_executable (string type)
-
public bool g_content_type_equals (string type1, string type2)
-
public string g_content_type_from_mime_type (string mime_type)
-
public string g_content_type_get_description (string type)
-
public Icon g_content_type_get_icon (string type)
-
public string g_content_type_get_mime_type (string type)
-
public string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain)
-
public string g_content_type_guess_for_tree (File root)
-
public bool g_content_type_is_a (string type, string supertype)
-
public bool g_content_type_is_unknown (string type)
-
public List<string> g_content_types_get_registered ()
Gets a list of strings containing all the registered content types known to the system. The list and
its data should be freed using
-
public unowned string g_dbus_address_get_for_bus_sync (BusType bus_type, Cancellable? cancellable = null) throws Error
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.
-
public async void g_dbus_address_get_stream (string address, Cancellable? cancellable = null)
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.
-
public weak IOStream g_dbus_address_get_stream_finish (AsyncResult res, string out_guid) throws Error
-
public weak IOStream g_dbus_address_get_stream_sync (string address, string out_guid, Cancellable? cancellable = null) throws Error
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.
-
public unowned string g_dbus_error_encode_gerror (Error error)
Creates a D-Bus error name to use for error. If error matches a registered
error (cf. g_dbus_error_register_error), the corresponding D-Bus
error name will be returned.
-
public unowned string g_dbus_error_get_remote_error (Error error)
Gets the D-Bus error name used for error, if any.
-
public bool g_dbus_error_is_remote_error (Error error)
Checks if error represents an error received via D-Bus from a remote peer. If so, use
g_dbus_error_get_remote_error to get the name of the error.
-
public weak Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message)
Creates a Error based on the contents of
dbus_error_name and dbus_error_message.
-
public Quark g_dbus_error_quark ()
-
public bool g_dbus_error_register_error (Quark error_domain, int error_code, string dbus_error_name)
Creates an association to map between dbus_error_name and
Errors specified by error_domain and error_code.
-
public void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, DBusErrorEntry entries, uint num_entries)
Helper function for associating a Error error
domain with D-Bus error names.
-
public void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws Error
-
public void g_dbus_error_set_dbus_error_valist (string dbus_error_name, string dbus_error_message, string format, void* var_args) throws Error
-
public bool g_dbus_error_strip_remote_error (Error error)
Looks for extra information in the error message used to recover the D-Bus error name and strips it if
found. If stripped, the message field in error will correspond exactly to what was received on the wire.
-
public bool g_dbus_error_unregister_error (Quark error_domain, int error_code, string dbus_error_name)
-
public unowned string g_dbus_generate_guid ()
-
public weak Variant g_dbus_gvalue_to_gvariant (Value gvalue, VariantType type)
-
public void g_dbus_gvariant_to_gvalue (Variant value, Value out_gvalue)
Converts a Variant to a
Value. If value is floating, it is consumed.
-
public bool g_dbus_is_address (string str)
Checks if string is a D-Bus address.
-
public bool g_dbus_is_guid (string str)
Checks if string is a D-Bus GUID.
-
public bool g_dbus_is_interface_name (string str)
Checks if string is a valid D-Bus interface name.
-
public bool g_dbus_is_member_name (string str)
Checks if string is a valid D-Bus member (e.g. signal or method) name.
-
public bool g_dbus_is_name (string str)
Checks if string is a valid D-Bus bus name (either unique or well-known).
-
public bool g_dbus_is_supported_address (string str) throws Error
Like g_dbus_is_address but also checks if the
library suppors the transports in string and that key/value pairs for each transport are valid.
-
public bool g_dbus_is_unique_name (string str)
Checks if string is a valid D-Bus unique bus name.
-
public unowned IOError g_io_error_from_errno (int err_no)
Converts errno.h error codes into GIO error codes.
-
public Quark g_io_error_quark ()
Gets the GIO Error Quark.
-
public List<weak TypeModule> g_io_modules_load_all_in_directory (string dirname)
Loads all the modules in the specified directory.
-
public unowned List g_io_modules_load_all_in_directory_with_scope (string dirname, IOModuleScope scope)
Loads all the modules in the specified directory.
-
public void g_io_modules_scan_all_in_directory (string dirname)
Scans all the modules in the specified directory, ensuring that any extension point implemented by a
module is registered.
-
public void g_io_modules_scan_all_in_directory_with_scope (string dirname, IOModuleScope scope)
Scans all the modules in the specified directory, ensuring that any extension point implemented by a
module is registered.
-
public void g_io_scheduler_cancel_all_jobs ()
Cancels all cancellable I/O jobs.
-
public void g_io_scheduler_push_job (owned IOSchedulerJobFunc job_func, int io_priority = DEFAULT, Cancellable? cancellable = null)
Schedules the I/O job to run.
-
public weak TimeoutSource g_pollable_source_new (Object pollable_stream)
-
public void g_simple_async_report_error_in_idle (Object object, AsyncReadyCallback callback, Quark domain, int code, string format)
Reports an error in an asynchronous function in an idle function by directly setting the contents of
the AsyncResult with the given error information.
-
public void g_simple_async_report_gerror_in_idle (Object object, AsyncReadyCallback callback, Error error)
-
public void g_simple_async_report_take_gerror_in_idle (Object object, AsyncReadyCallback callback, Error error)
Reports an error in an idle function. Similar to
g_simple_async_report_gerror_in_idle, but takes over the
caller's ownership of error, so the caller does not have to free it any more.
-
public Quark g_tls_error_quark ()
Gets the TLS error quark.
-
public bool can_be_executable (string type)
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).
-
public bool equals (string type1, string type2)
Compares two content types for equality.
-
public string from_mime_type (string mime_type)
Tries to find a content type based on the mime type name.
-
public string get_description (string type)
Gets the human readable description of the content type.
-
public Icon get_icon (string type)
Gets the icon for a content type.
-
public string get_mime_type (string type)
Gets the mime type for the content type, if one is registered.
-
public string guess (string? filename, uchar[]? data, out bool result_uncertain)
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.
-
public string[] guess_for_tree (File root)
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.
-
public bool is_a (string type, string supertype)
Determines if type is a subset of supertype.
-
public bool is_unknown (string type)
Checks if the content type is the generic "unknown" type. On UNIX this is the
"application/octet-stream" mimetype, while on win32 it is "*".