mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
GAppInfo: Add async API to get default Application for URI scheme
Make possible to fetch the default application for URI scheme in a thread without using blocking I/O.
This commit is contained in:
@@ -258,6 +258,15 @@ GAppInfo *g_app_info_get_default_for_type_finish (GAsyncResult *result,
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GAppInfo *g_app_info_get_default_for_uri_scheme (const char *uri_scheme);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_74
|
||||
void g_app_info_get_default_for_uri_scheme_async (const char *uri_scheme,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GLIB_AVAILABLE_IN_2_74
|
||||
GAppInfo *g_app_info_get_default_for_uri_scheme_finish (GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_app_info_launch_default_for_uri (const char *uri,
|
||||
GAppLaunchContext *context,
|
||||
|
Reference in New Issue
Block a user