return openuri != NULL;
}
+gboolean
+g_openuri_portal_is_available (void)
+{
+ return init_openuri_portal ();
+}
+
enum {
XDG_DESKTOP_PORTAL_SUCCESS = 0,
XDG_DESKTOP_PORTAL_CANCELLED = 1,
G_BEGIN_DECLS
-void g_openuri_portal_open_async (GFile *file,
- gboolean open_folder,
- GtkWindow *window,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-
-gboolean g_openuri_portal_open_finish (GAsyncResult *result,
- GError **error);
+gboolean g_openuri_portal_is_available (void);
+
+void g_openuri_portal_open_async (GFile *file,
+ gboolean open_folder,
+ GtkWindow *window,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean g_openuri_portal_open_finish (GAsyncResult *result,
+ GError **error);
G_END_DECLS