Merge lp:~ricotz/switchboard-plug-locale/polkit into lp:~elementary-apps/switchboard-plug-locale/trunk
- polkit
- Merge into trunk
Proposed by
Rico Tzschichholz
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 232 |
Merged at revision: | 232 |
Proposed branch: | lp:~ricotz/switchboard-plug-locale/polkit |
Merge into: | lp:~elementary-apps/switchboard-plug-locale/trunk |
Diff against target: |
249 lines (+2/-220) 3 files modified
src/CMakeLists.txt (+1/-1) src/Utils.vala (+1/-1) vapi/polkit-gobject-1.vapi (+0/-218) |
To merge this branch: | bzr merge lp:~ricotz/switchboard-plug-locale/polkit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
elementary Apps team | Pending | ||
Review via email: mp+309261@code.launchpad.net |
Commit message
Remove polkit-
Description of the change
Remove polkit-
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'src/CMakeLists.txt' | |||
2 | --- src/CMakeLists.txt 2015-07-10 13:20:01 +0000 | |||
3 | +++ src/CMakeLists.txt 2016-10-25 13:41:48 +0000 | |||
4 | @@ -8,7 +8,7 @@ | |||
5 | 8 | 8 | ||
6 | 9 | find_package (Vala REQUIRED) | 9 | find_package (Vala REQUIRED) |
7 | 10 | include (ValaVersion) | 10 | include (ValaVersion) |
9 | 11 | ensure_vala_version ("0.23.0" MINIMUM) | 11 | ensure_vala_version ("0.34.1" MINIMUM) |
10 | 12 | 12 | ||
11 | 13 | include (ValaPrecompile) | 13 | include (ValaPrecompile) |
12 | 14 | # Add all your vala files and requires packages to the List below to include them in the build | 14 | # Add all your vala files and requires packages to the List below to include them in the build |
13 | 15 | 15 | ||
14 | === modified file 'src/Utils.vala' | |||
15 | --- src/Utils.vala 2015-07-14 12:09:24 +0000 | |||
16 | +++ src/Utils.vala 2016-10-25 13:41:48 +0000 | |||
17 | @@ -219,7 +219,7 @@ | |||
18 | 219 | if (permission != null) | 219 | if (permission != null) |
19 | 220 | return permission; | 220 | return permission; |
20 | 221 | try { | 221 | try { |
22 | 222 | permission = new Polkit.Permission.sync ("org.pantheon.switchboard.locale.administration", Polkit.UnixProcess.new (Posix.getpid ())); | 222 | permission = new Polkit.Permission.sync ("org.pantheon.switchboard.locale.administration", new Polkit.UnixProcess (Posix.getpid ())); |
23 | 223 | return permission; | 223 | return permission; |
24 | 224 | } catch (Error e) { | 224 | } catch (Error e) { |
25 | 225 | critical (e.message); | 225 | critical (e.message); |
26 | 226 | 226 | ||
27 | === removed file 'vapi/polkit-gobject-1.vapi' | |||
28 | --- vapi/polkit-gobject-1.vapi 2014-04-09 17:30:07 +0000 | |||
29 | +++ vapi/polkit-gobject-1.vapi 1970-01-01 00:00:00 +0000 | |||
30 | @@ -1,218 +0,0 @@ | |||
31 | 1 | /* polkit-gobject-1.vapi generated by vapigen, do not modify. */ | ||
32 | 2 | |||
33 | 3 | [CCode (cprefix = "Polkit", gir_namespace = "Polkit", gir_version = "1.0", lower_case_cprefix = "polkit_")] | ||
34 | 4 | namespace Polkit { | ||
35 | 5 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_action_description_get_type ()")] | ||
36 | 6 | public class ActionDescription : GLib.Object { | ||
37 | 7 | [CCode (has_construct_function = false)] | ||
38 | 8 | protected ActionDescription (); | ||
39 | 9 | public unowned string get_action_id (); | ||
40 | 10 | public unowned string get_annotation (string key); | ||
41 | 11 | [CCode (array_length = false, array_null_terminated = true)] | ||
42 | 12 | public unowned string[] get_annotation_keys (); | ||
43 | 13 | public unowned string get_description (); | ||
44 | 14 | public unowned string get_icon_name (); | ||
45 | 15 | public Polkit.ImplicitAuthorization get_implicit_active (); | ||
46 | 16 | public Polkit.ImplicitAuthorization get_implicit_any (); | ||
47 | 17 | public Polkit.ImplicitAuthorization get_implicit_inactive (); | ||
48 | 18 | public unowned string get_message (); | ||
49 | 19 | public unowned string get_vendor_name (); | ||
50 | 20 | public unowned string get_vendor_url (); | ||
51 | 21 | } | ||
52 | 22 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_authority_get_type ()")] | ||
53 | 23 | public class Authority : GLib.Object, GLib.AsyncInitable, GLib.Initable { | ||
54 | 24 | [CCode (has_construct_function = false)] | ||
55 | 25 | protected Authority (); | ||
56 | 26 | public async bool authentication_agent_response (string cookie, Polkit.Identity identity, GLib.Cancellable? cancellable) throws GLib.Error; | ||
57 | 27 | public bool authentication_agent_response_sync (string cookie, Polkit.Identity identity, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
58 | 28 | public async Polkit.AuthorizationResult check_authorization (Polkit.Subject subject, string action_id, Polkit.Details? details, Polkit.CheckAuthorizationFlags flags, GLib.Cancellable? cancellable) throws GLib.Error; | ||
59 | 29 | public Polkit.AuthorizationResult check_authorization_sync (Polkit.Subject subject, string action_id, Polkit.Details? details, Polkit.CheckAuthorizationFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
60 | 30 | public async void enumerate_actions (GLib.Cancellable? cancellable); | ||
61 | 31 | public async void enumerate_temporary_authorizations (Polkit.Subject subject, GLib.Cancellable? cancellable); | ||
62 | 32 | public static Polkit.Authority @get (); | ||
63 | 33 | public static async Polkit.Authority get_async (GLib.Cancellable? cancellable) throws GLib.Error; | ||
64 | 34 | public Polkit.AuthorityFeatures get_backend_features (); | ||
65 | 35 | public unowned string get_backend_name (); | ||
66 | 36 | public unowned string get_backend_version (); | ||
67 | 37 | public string get_owner (); | ||
68 | 38 | public static Polkit.Authority get_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
69 | 39 | public async bool register_authentication_agent (Polkit.Subject subject, string locale, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; | ||
70 | 40 | public bool register_authentication_agent_sync (Polkit.Subject subject, string locale, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
71 | 41 | public async bool register_authentication_agent_with_options (Polkit.Subject subject, string locale, string object_path, GLib.Variant? options, GLib.Cancellable? cancellable) throws GLib.Error; | ||
72 | 42 | public bool register_authentication_agent_with_options_sync (Polkit.Subject subject, string locale, string object_path, GLib.Variant? options, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
73 | 43 | public async bool revoke_temporary_authorization_by_id (string id, GLib.Cancellable? cancellable) throws GLib.Error; | ||
74 | 44 | public bool revoke_temporary_authorization_by_id_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
75 | 45 | public async bool revoke_temporary_authorizations (Polkit.Subject subject, GLib.Cancellable? cancellable) throws GLib.Error; | ||
76 | 46 | public bool revoke_temporary_authorizations_sync (Polkit.Subject subject, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
77 | 47 | public async bool unregister_authentication_agent (Polkit.Subject subject, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; | ||
78 | 48 | public bool unregister_authentication_agent_sync (Polkit.Subject subject, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
79 | 49 | public Polkit.AuthorityFeatures backend_features { get; } | ||
80 | 50 | public string backend_name { get; } | ||
81 | 51 | public string backend_version { get; } | ||
82 | 52 | public string owner { owned get; } | ||
83 | 53 | public signal void changed (); | ||
84 | 54 | } | ||
85 | 55 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_authorization_result_get_type ()")] | ||
86 | 56 | public class AuthorizationResult : GLib.Object { | ||
87 | 57 | [CCode (has_construct_function = false)] | ||
88 | 58 | public AuthorizationResult (bool is_authorized, bool is_challenge, Polkit.Details? details); | ||
89 | 59 | public unowned Polkit.Details get_details (); | ||
90 | 60 | public bool get_dismissed (); | ||
91 | 61 | public bool get_is_authorized (); | ||
92 | 62 | public bool get_is_challenge (); | ||
93 | 63 | public bool get_retains_authorization (); | ||
94 | 64 | public unowned string get_temporary_authorization_id (); | ||
95 | 65 | } | ||
96 | 66 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_details_get_type ()")] | ||
97 | 67 | public class Details : GLib.Object { | ||
98 | 68 | [CCode (has_construct_function = false)] | ||
99 | 69 | public Details (); | ||
100 | 70 | [CCode (array_length = false, array_null_terminated = true)] | ||
101 | 71 | public string[] get_keys (); | ||
102 | 72 | public void insert (string key, string? value); | ||
103 | 73 | public unowned string lookup (string key); | ||
104 | 74 | } | ||
105 | 75 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_permission_get_type ()")] | ||
106 | 76 | public class Permission : GLib.Permission, GLib.AsyncInitable, GLib.Initable { | ||
107 | 77 | [CCode (cname = "polkit_permission_new", has_construct_function = false)] | ||
108 | 78 | public async Permission (string action_id, Polkit.Subject? subject, GLib.Cancellable? cancellable) throws GLib.Error; | ||
109 | 79 | public unowned string get_action_id (); | ||
110 | 80 | public unowned Polkit.Subject get_subject (); | ||
111 | 81 | [CCode (has_construct_function = false, type = "GPermission*")] | ||
112 | 82 | public Permission.sync (string action_id, Polkit.Subject? subject, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
113 | 83 | public string action_id { get; construct; } | ||
114 | 84 | public Polkit.Subject subject { get; construct; } | ||
115 | 85 | } | ||
116 | 86 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_system_bus_name_get_type ()")] | ||
117 | 87 | public class SystemBusName : GLib.Object, Polkit.Subject { | ||
118 | 88 | [CCode (has_construct_function = false)] | ||
119 | 89 | protected SystemBusName (); | ||
120 | 90 | public unowned string get_name (); | ||
121 | 91 | public Polkit.Subject get_process_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
122 | 92 | public static Polkit.Subject @new (string name); | ||
123 | 93 | public void set_name (string name); | ||
124 | 94 | public string name { get; set construct; } | ||
125 | 95 | } | ||
126 | 96 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_temporary_authorization_get_type ()")] | ||
127 | 97 | public class TemporaryAuthorization : GLib.Object { | ||
128 | 98 | [CCode (has_construct_function = false)] | ||
129 | 99 | public TemporaryAuthorization (string id, string action_id, Polkit.Subject subject, uint64 time_obtained, uint64 time_expires); | ||
130 | 100 | public unowned string get_action_id (); | ||
131 | 101 | public unowned string get_id (); | ||
132 | 102 | public Polkit.Subject get_subject (); | ||
133 | 103 | public uint64 get_time_expires (); | ||
134 | 104 | public uint64 get_time_obtained (); | ||
135 | 105 | } | ||
136 | 106 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_group_get_type ()")] | ||
137 | 107 | public class UnixGroup : GLib.Object, Polkit.Identity { | ||
138 | 108 | [CCode (has_construct_function = false)] | ||
139 | 109 | protected UnixGroup (); | ||
140 | 110 | public int get_gid (); | ||
141 | 111 | public static Polkit.Identity @new (int gid); | ||
142 | 112 | public static Polkit.Identity new_for_name (string name) throws GLib.Error; | ||
143 | 113 | public void set_gid (int gid); | ||
144 | 114 | public int gid { get; set construct; } | ||
145 | 115 | } | ||
146 | 116 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_netgroup_get_type ()")] | ||
147 | 117 | public class UnixNetgroup : GLib.Object, Polkit.Identity { | ||
148 | 118 | [CCode (has_construct_function = false)] | ||
149 | 119 | protected UnixNetgroup (); | ||
150 | 120 | public unowned string get_name (); | ||
151 | 121 | public static Polkit.Identity @new (string name); | ||
152 | 122 | public void set_name (string name); | ||
153 | 123 | public string name { get; set construct; } | ||
154 | 124 | } | ||
155 | 125 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_process_get_type ()")] | ||
156 | 126 | public class UnixProcess : GLib.Object, Polkit.Subject { | ||
157 | 127 | [CCode (has_construct_function = false)] | ||
158 | 128 | protected UnixProcess (); | ||
159 | 129 | public int get_owner () throws GLib.Error; | ||
160 | 130 | public int get_pid (); | ||
161 | 131 | public uint64 get_start_time (); | ||
162 | 132 | public int get_uid (); | ||
163 | 133 | public static Polkit.Subject @new (int pid); | ||
164 | 134 | public static Polkit.Subject new_for_owner (int pid, uint64 start_time, int uid); | ||
165 | 135 | public static Polkit.Subject new_full (int pid, uint64 start_time); | ||
166 | 136 | public void set_pid (int pid); | ||
167 | 137 | public void set_start_time (uint64 start_time); | ||
168 | 138 | public void set_uid (int uid); | ||
169 | 139 | public int pid { get; set construct; } | ||
170 | 140 | public uint64 start_time { get; set construct; } | ||
171 | 141 | public int uid { get; set construct; } | ||
172 | 142 | } | ||
173 | 143 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_session_get_type ()")] | ||
174 | 144 | public class UnixSession : GLib.Object, GLib.AsyncInitable, GLib.Initable, Polkit.Subject { | ||
175 | 145 | [CCode (has_construct_function = false)] | ||
176 | 146 | protected UnixSession (); | ||
177 | 147 | public unowned string get_session_id (); | ||
178 | 148 | public static Polkit.Subject @new (string session_id); | ||
179 | 149 | public static async Polkit.Subject new_for_process (int pid, GLib.Cancellable? cancellable) throws GLib.Error; | ||
180 | 150 | public static Polkit.Subject new_for_process_sync (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
181 | 151 | public void set_session_id (string session_id); | ||
182 | 152 | public int pid { construct; } | ||
183 | 153 | public string session_id { get; set construct; } | ||
184 | 154 | } | ||
185 | 155 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_user_get_type ()")] | ||
186 | 156 | public class UnixUser : GLib.Object, Polkit.Identity { | ||
187 | 157 | [CCode (has_construct_function = false)] | ||
188 | 158 | protected UnixUser (); | ||
189 | 159 | public unowned string get_name (); | ||
190 | 160 | public int get_uid (); | ||
191 | 161 | public static Polkit.Identity @new (int uid); | ||
192 | 162 | public static Polkit.Identity new_for_name (string name) throws GLib.Error; | ||
193 | 163 | public void set_uid (int uid); | ||
194 | 164 | public int uid { get; set construct; } | ||
195 | 165 | } | ||
196 | 166 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_identity_get_type ()")] | ||
197 | 167 | public interface Identity : GLib.Object { | ||
198 | 168 | public abstract bool equal (Polkit.Identity b); | ||
199 | 169 | public static Polkit.Identity from_string (string str) throws GLib.Error; | ||
200 | 170 | public abstract uint hash (); | ||
201 | 171 | public abstract string to_string (); | ||
202 | 172 | } | ||
203 | 173 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_subject_get_type ()")] | ||
204 | 174 | public interface Subject : GLib.Object { | ||
205 | 175 | public abstract bool equal (Polkit.Subject b); | ||
206 | 176 | public abstract async bool exists (GLib.Cancellable? cancellable) throws GLib.Error; | ||
207 | 177 | public abstract bool exists_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
208 | 178 | public static Polkit.Subject from_string (string str) throws GLib.Error; | ||
209 | 179 | public abstract uint hash (); | ||
210 | 180 | public abstract string to_string (); | ||
211 | 181 | } | ||
212 | 182 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_AUTHORITY_FEATURES_", type_id = "polkit_authority_features_get_type ()")] | ||
213 | 183 | [Flags] | ||
214 | 184 | public enum AuthorityFeatures { | ||
215 | 185 | NONE, | ||
216 | 186 | TEMPORARY_AUTHORIZATION | ||
217 | 187 | } | ||
218 | 188 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_CHECK_AUTHORIZATION_FLAGS_", type_id = "polkit_check_authorization_flags_get_type ()")] | ||
219 | 189 | [Flags] | ||
220 | 190 | public enum CheckAuthorizationFlags { | ||
221 | 191 | NONE, | ||
222 | 192 | ALLOW_USER_INTERACTION | ||
223 | 193 | } | ||
224 | 194 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_IMPLICIT_AUTHORIZATION_", type_id = "polkit_implicit_authorization_get_type ()")] | ||
225 | 195 | public enum ImplicitAuthorization { | ||
226 | 196 | UNKNOWN, | ||
227 | 197 | NOT_AUTHORIZED, | ||
228 | 198 | AUTHENTICATION_REQUIRED, | ||
229 | 199 | ADMINISTRATOR_AUTHENTICATION_REQUIRED, | ||
230 | 200 | AUTHENTICATION_REQUIRED_RETAINED, | ||
231 | 201 | ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED, | ||
232 | 202 | AUTHORIZED; | ||
233 | 203 | public static bool from_string (string string, Polkit.ImplicitAuthorization out_implicit_authorization); | ||
234 | 204 | public static unowned string to_string (Polkit.ImplicitAuthorization implicit_authorization); | ||
235 | 205 | } | ||
236 | 206 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_ERROR_")] | ||
237 | 207 | public errordomain Error { | ||
238 | 208 | FAILED, | ||
239 | 209 | CANCELLED, | ||
240 | 210 | NOT_SUPPORTED, | ||
241 | 211 | NOT_AUTHORIZED; | ||
242 | 212 | public static GLib.Quark quark (); | ||
243 | 213 | } | ||
244 | 214 | [CCode (cheader_filename = "polkit/polkit.h")] | ||
245 | 215 | public static Polkit.Identity identity_from_string (string str) throws GLib.Error; | ||
246 | 216 | [CCode (cheader_filename = "polkit/polkit.h")] | ||
247 | 217 | public static Polkit.Subject subject_from_string (string str) throws GLib.Error; | ||
248 | 218 | } | ||
249 | 219 | \ No newline at end of file | 0 | \ No newline at end of file |