Debian Codegraph @

liblomiri-app-launch/utils.h

raw
1 /*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published
6 * by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranties of
10 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11 * PURPOSE. See the GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Ted Gould <[email protected]>
18 */
19
20 #include <gio/gio.h>
21
22 G_BEGIN_DECLS
23
24 gboolean app_id_to_triplet (const gchar * app_id,
25 gchar ** package,
26 gchar ** application,
27 gchar ** version);
28 gchar * manifest_to_desktop (const gchar * app_dir,
29 const gchar * app_id);
30 gchar * desktop_to_exec (GKeyFile * desktop_file,
31 const gchar * from);
32 GArray * desktop_exec_parse (const gchar * execline,
33 const gchar * uri_list);
34 GKeyFile * keyfile_for_appid (const gchar * appid,
35 gchar * * desktopfile);
36
37 typedef struct _handshake_t handshake_t;
38 handshake_t * starting_handshake_start (const gchar * app_id,
39 const gchar * instance_id,
40 int timeout_s);
41 void starting_handshake_wait (handshake_t * handshake);
42
43 gboolean verify_keyfile (GKeyFile * inkeyfile,
44 const gchar * desktop);
45
46 G_END_DECLS
47