1 /* GIO - GLib Input, Output and Streaming Library 2 * 3 * Copyright 2017 Red Hat, Inc. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef __G_OPEN_URI_PORTAL_H__ 20 21 #include <glib.h> 22 #include <gio/gio.h> 23 24 G_BEGIN_DECLS 25 26 gboolean g_openuri_portal_open_uri (const char *uri, 27 const char *parent_window, 28 GError **error); 29 30 void g_openuri_portal_open_uri_async (const char *uri, 31 const char *parent_window, 32 GCancellable *cancellable, 33 GAsyncReadyCallback callback, 34 gpointer user_data); 35 36 gboolean g_openuri_portal_open_uri_finish (GAsyncResult *result, 37 GError **error); 38 39 G_END_DECLS 40 41 #endif 42