Function
GioAppInfoget_default_for_uri_scheme_async
since: 2.74
Declaration [src]
void
g_app_info_get_default_for_uri_scheme_async (
const char* uri_scheme,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously gets the default application for handling URIs with
the given URI scheme. A URI scheme is the initial part
of the URI, up to but not including the :, e.g. http,
ftp or sip.
Available since: 2.74
This function completes asynchronously. Use g_app_info_get_default_for_uri_scheme_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
uri_scheme-
Type:
const char*A string containing a URI scheme.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is done. user_data-
Type:
gpointerData to pass to
callback.The argument can be NULL.The data is owned by the caller of the function.