33.2.14
by Ted Gould
Adding in some helper function prototypes |
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 <ted.gould@canonical.com>
|
|
18 |
*/
|
|
19 |
||
150.2.15
by Ted Gould
Pull getting the connection out of the function to make it last longer in some cases |
20 |
#include <gio/gio.h> |
33.2.14
by Ted Gould
Adding in some helper function prototypes |
21 |
|
150.3.2
by Ted Gould
Migrate helpers away from set_upstart_variable |
22 |
typedef struct _EnvHandle EnvHandle; |
23 |
||
214
by Michael Terry
Add async versions of start_application calls |
24 |
typedef void (*HandshakeCallback) (gpointer user_data); |
25 |
||
33.2.14
by Ted Gould
Adding in some helper function prototypes |
26 |
gboolean app_id_to_triplet (const gchar * app_id, |
27 |
gchar ** package, |
|
28 |
gchar ** application, |
|
29 |
gchar ** version); |
|
30 |
gchar * manifest_to_desktop (const gchar * app_dir, |
|
31 |
const gchar * app_id); |
|
33.2.18
by Ted Gould
Move validation into the helper |
32 |
gchar * desktop_to_exec (GKeyFile * desktop_file, |
33 |
const gchar * from); |
|
62.1.19
by Ted Gould
Switching out some of the code into helpers |
34 |
GArray * desktop_exec_parse (const gchar * execline, |
33.3.6
by Ted Gould
Move the desktop exec parser into the helper functions |
35 |
const gchar * uri_list); |
62.1.31
by Ted Gould
Have the exec utility pass what desktop file it uses as a variable to exec-line-exec |
36 |
GKeyFile * keyfile_for_appid (const gchar * appid, |
37 |
gchar * * desktopfile); |
|
150.3.2
by Ted Gould
Migrate helpers away from set_upstart_variable |
38 |
void set_confined_envvars (EnvHandle * handle, |
39 |
const gchar * package, |
|
80.2.1
by Ted Gould
Make it so that we prepend on data dirs the application directory |
40 |
const gchar * app_dir); |
33.2.14
by Ted Gould
Adding in some helper function prototypes |
41 |
|
150.3.1
by Ted Gould
Add an environment builder handle |
42 |
/* A handle to group environment setting */
|
43 |
EnvHandle * env_handle_start (void); |
|
44 |
void env_handle_add (EnvHandle * handle, |
|
45 |
const gchar * variable, |
|
46 |
const gchar * value); |
|
47 |
void env_handle_finish (EnvHandle * handle); |
|
48 |
||
87.4.9
by Ted Gould
Put everything into helpers |
49 |
typedef struct _handshake_t handshake_t; |
214
by Michael Terry
Add async versions of start_application calls |
50 |
handshake_t * starting_handshake_start (const gchar * app_id, |
51 |
HandshakeCallback callback, |
|
52 |
gpointer user_data, |
|
53 |
GDestroyNotify user_data_free); |
|
54 |
void starting_handshake_wait (handshake_t * handshake); |
|
87.4.9
by Ted Gould
Put everything into helpers |
55 |
|
150.2.15
by Ted Gould
Pull getting the connection out of the function to make it last longer in some cases |
56 |
GDBusConnection * cgroup_manager_connection (void); |
175.4.3
by Ted Gould
Switching to a complex unref routine |
57 |
void cgroup_manager_unref (GDBusConnection * cgroup_manager); |
150.2.15
by Ted Gould
Pull getting the connection out of the function to make it last longer in some cases |
58 |
GList * pids_from_cgroup (GDBusConnection * cgmanager, |
59 |
const gchar * jobname, |
|
150.2.9
by Ted Gould
Basic cgmanager queries |
60 |
const gchar * instancename); |
150.2.1
by Ted Gould
Prototype for getting the list of PIDs |
61 |
|
200.3.5
by Ted Gould
Get the libertine keyfile |
62 |
gboolean verify_keyfile (GKeyFile * inkeyfile, |
63 |
const gchar * desktop); |