Merge lp:~ricotz/pantheon-agent-polkit/polkit into lp:~elementary-pantheon/pantheon-agent-polkit/trunk
- polkit
- Merge into trunk
Proposed by
Rico Tzschichholz
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 38 |
Merged at revision: | 38 |
Proposed branch: | lp:~ricotz/pantheon-agent-polkit/polkit |
Merge into: | lp:~elementary-pantheon/pantheon-agent-polkit/trunk |
Diff against target: |
313 lines (+4/-265) 4 files modified
CMakeLists.txt (+1/-1) src/Agent.vala (+3/-3) vapi/polkit-agent-1.vapi (+0/-43) vapi/polkit-gobject-1.vapi (+0/-218) |
To merge this branch: | bzr merge lp:~ricotz/pantheon-agent-polkit/polkit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
elementary Pantheon team | Pending | ||
Review via email:
|
Commit message
Remove polkit-*-1.vapi and use the one shipped with valac 0.34.1
Description of the change
Remove polkit-*-1.vapi and use the one shippped with valac 0.34.1
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 'CMakeLists.txt' | |||
2 | --- CMakeLists.txt 2016-07-27 15:25:20 +0000 | |||
3 | +++ CMakeLists.txt 2016-10-25 21:42:06 +0000 | |||
4 | @@ -24,7 +24,7 @@ | |||
5 | 24 | 24 | ||
6 | 25 | find_package (Vala REQUIRED) | 25 | find_package (Vala REQUIRED) |
7 | 26 | include (ValaVersion) | 26 | include (ValaVersion) |
9 | 27 | ensure_vala_version ("0.26" MINIMUM) | 27 | ensure_vala_version ("0.34.1" MINIMUM) |
10 | 28 | 28 | ||
11 | 29 | include (ValaPrecompile) | 29 | include (ValaPrecompile) |
12 | 30 | 30 | ||
13 | 31 | 31 | ||
14 | === modified file 'src/Agent.vala' | |||
15 | --- src/Agent.vala 2016-08-08 19:12:48 +0000 | |||
16 | +++ src/Agent.vala 2016-10-25 21:42:06 +0000 | |||
17 | @@ -35,7 +35,7 @@ | |||
18 | 35 | } | 35 | } |
19 | 36 | 36 | ||
20 | 37 | public override async bool initiate_authentication (string action_id, string message, string icon_name, | 37 | public override async bool initiate_authentication (string action_id, string message, string icon_name, |
22 | 38 | Polkit.Details details, string cookie, GLib.List<Polkit.Identity?>? identities, GLib.Cancellable cancellable) { | 38 | Polkit.Details details, string cookie, GLib.List<Polkit.Identity> identities, GLib.Cancellable? cancellable) { |
23 | 39 | if (identities == null) { | 39 | if (identities == null) { |
24 | 40 | return false; | 40 | return false; |
25 | 41 | } | 41 | } |
26 | @@ -84,7 +84,7 @@ | |||
27 | 84 | 84 | ||
28 | 85 | Polkit.Subject? subject = null; | 85 | Polkit.Subject? subject = null; |
29 | 86 | try { | 86 | try { |
31 | 87 | subject = Polkit.UnixSession.new_for_process_sync (pid, null); | 87 | subject = new Polkit.UnixSession.for_process_sync (pid, null); |
32 | 88 | } catch (Error e) { | 88 | } catch (Error e) { |
33 | 89 | critical ("Unable to initiate Polkit: %s", e.message); | 89 | critical ("Unable to initiate Polkit: %s", e.message); |
34 | 90 | return 1; | 90 | return 1; |
35 | @@ -99,4 +99,4 @@ | |||
36 | 99 | Gtk.main (); | 99 | Gtk.main (); |
37 | 100 | return 0; | 100 | return 0; |
38 | 101 | } | 101 | } |
39 | 102 | } | ||
40 | 103 | \ No newline at end of file | 102 | \ No newline at end of file |
41 | 103 | } | ||
42 | 104 | 104 | ||
43 | === removed file 'vapi/polkit-agent-1.vapi' | |||
44 | --- vapi/polkit-agent-1.vapi 2016-07-27 13:08:52 +0000 | |||
45 | +++ vapi/polkit-agent-1.vapi 1970-01-01 00:00:00 +0000 | |||
46 | @@ -1,43 +0,0 @@ | |||
47 | 1 | /* polkit-agent-1.vapi generated by vapigen, do not modify. */ | ||
48 | 2 | |||
49 | 3 | [CCode (cprefix = "PolkitAgent", gir_namespace = "PolkitAgent", gir_version = "1.0", lower_case_cprefix = "polkit_agent_")] | ||
50 | 4 | namespace PolkitAgent { | ||
51 | 5 | [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_listener_get_type ()")] | ||
52 | 6 | public abstract class Listener : GLib.Object { | ||
53 | 7 | [CCode (has_construct_function = false)] | ||
54 | 8 | protected Listener (); | ||
55 | 9 | public virtual async bool initiate_authentication (string action_id, string message, string icon_name, Polkit.Details details, string cookie, GLib.List<Polkit.Identity?>? identities, GLib.Cancellable cancellable); | ||
56 | 10 | public void* register (PolkitAgent.RegisterFlags flags, Polkit.Subject subject, string? object_path, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
57 | 11 | public void* register_with_options (PolkitAgent.RegisterFlags flags, Polkit.Subject subject, string object_path, GLib.Variant? options, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
58 | 12 | public static void unregister (void* registration_handle); | ||
59 | 13 | } | ||
60 | 14 | [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_session_get_type ()")] | ||
61 | 15 | public class Session : GLib.Object { | ||
62 | 16 | [CCode (has_construct_function = false)] | ||
63 | 17 | public Session (Polkit.Identity identity, string cookie); | ||
64 | 18 | public void cancel (); | ||
65 | 19 | public void initiate (); | ||
66 | 20 | public void response (string response); | ||
67 | 21 | [NoAccessorMethod] | ||
68 | 22 | public string cookie { owned get; construct; } | ||
69 | 23 | [NoAccessorMethod] | ||
70 | 24 | public Polkit.Identity identity { owned get; construct; } | ||
71 | 25 | public signal void completed (bool gained_authorization); | ||
72 | 26 | public signal void request (string request, bool echo_on); | ||
73 | 27 | public signal void show_error (string text); | ||
74 | 28 | public signal void show_info (string text); | ||
75 | 29 | } | ||
76 | 30 | [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_text_listener_get_type ()")] | ||
77 | 31 | public class TextListener : PolkitAgent.Listener, GLib.Initable { | ||
78 | 32 | [CCode (has_construct_function = false, type = "PolkitAgentListener*")] | ||
79 | 33 | public TextListener (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
80 | 34 | } | ||
81 | 35 | [CCode (cheader_filename = "polkitagent/polkitagent.h", cprefix = "POLKIT_AGENT_REGISTER_FLAGS_", type_id = "polkit_agent_register_flags_get_type ()")] | ||
82 | 36 | [Flags] | ||
83 | 37 | public enum RegisterFlags { | ||
84 | 38 | NONE, | ||
85 | 39 | RUN_IN_THREAD | ||
86 | 40 | } | ||
87 | 41 | [CCode (cheader_filename = "polkitagent/polkitagent.h")] | ||
88 | 42 | public static bool register_listener (PolkitAgent.Listener listener, Polkit.Subject subject, string object_path) throws GLib.Error; | ||
89 | 43 | } | ||
90 | 44 | \ No newline at end of file | 0 | \ No newline at end of file |
91 | 45 | 1 | ||
92 | === removed file 'vapi/polkit-gobject-1.vapi' | |||
93 | --- vapi/polkit-gobject-1.vapi 2016-07-25 22:12:53 +0000 | |||
94 | +++ vapi/polkit-gobject-1.vapi 1970-01-01 00:00:00 +0000 | |||
95 | @@ -1,218 +0,0 @@ | |||
96 | 1 | /* polkit-gobject-1.vapi generated by vapigen, do not modify. */ | ||
97 | 2 | |||
98 | 3 | [CCode (cprefix = "Polkit", gir_namespace = "Polkit", gir_version = "1.0", lower_case_cprefix = "polkit_")] | ||
99 | 4 | namespace Polkit { | ||
100 | 5 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_action_description_get_type ()")] | ||
101 | 6 | public class ActionDescription : GLib.Object { | ||
102 | 7 | [CCode (has_construct_function = false)] | ||
103 | 8 | protected ActionDescription (); | ||
104 | 9 | public unowned string get_action_id (); | ||
105 | 10 | public unowned string get_annotation (string key); | ||
106 | 11 | [CCode (array_length = false, array_null_terminated = true)] | ||
107 | 12 | public unowned string[] get_annotation_keys (); | ||
108 | 13 | public unowned string get_description (); | ||
109 | 14 | public unowned string get_icon_name (); | ||
110 | 15 | public Polkit.ImplicitAuthorization get_implicit_active (); | ||
111 | 16 | public Polkit.ImplicitAuthorization get_implicit_any (); | ||
112 | 17 | public Polkit.ImplicitAuthorization get_implicit_inactive (); | ||
113 | 18 | public unowned string get_message (); | ||
114 | 19 | public unowned string get_vendor_name (); | ||
115 | 20 | public unowned string get_vendor_url (); | ||
116 | 21 | } | ||
117 | 22 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_authority_get_type ()")] | ||
118 | 23 | public class Authority : GLib.Object, GLib.AsyncInitable, GLib.Initable { | ||
119 | 24 | [CCode (has_construct_function = false)] | ||
120 | 25 | protected Authority (); | ||
121 | 26 | public async bool authentication_agent_response (string cookie, Polkit.Identity identity, GLib.Cancellable? cancellable) throws GLib.Error; | ||
122 | 27 | public bool authentication_agent_response_sync (string cookie, Polkit.Identity identity, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
123 | 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; | ||
124 | 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; | ||
125 | 30 | public async void enumerate_actions (GLib.Cancellable? cancellable); | ||
126 | 31 | public async void enumerate_temporary_authorizations (Polkit.Subject subject, GLib.Cancellable? cancellable); | ||
127 | 32 | public static Polkit.Authority @get (); | ||
128 | 33 | public static async Polkit.Authority get_async (GLib.Cancellable? cancellable) throws GLib.Error; | ||
129 | 34 | public Polkit.AuthorityFeatures get_backend_features (); | ||
130 | 35 | public unowned string get_backend_name (); | ||
131 | 36 | public unowned string get_backend_version (); | ||
132 | 37 | public string get_owner (); | ||
133 | 38 | public static Polkit.Authority get_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
134 | 39 | public async bool register_authentication_agent (Polkit.Subject subject, string locale, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; | ||
135 | 40 | public bool register_authentication_agent_sync (Polkit.Subject subject, string locale, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
136 | 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; | ||
137 | 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; | ||
138 | 43 | public async bool revoke_temporary_authorization_by_id (string id, GLib.Cancellable? cancellable) throws GLib.Error; | ||
139 | 44 | public bool revoke_temporary_authorization_by_id_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
140 | 45 | public async bool revoke_temporary_authorizations (Polkit.Subject subject, GLib.Cancellable? cancellable) throws GLib.Error; | ||
141 | 46 | public bool revoke_temporary_authorizations_sync (Polkit.Subject subject, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
142 | 47 | public async bool unregister_authentication_agent (Polkit.Subject subject, string object_path, GLib.Cancellable? cancellable) throws GLib.Error; | ||
143 | 48 | public bool unregister_authentication_agent_sync (Polkit.Subject subject, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
144 | 49 | public Polkit.AuthorityFeatures backend_features { get; } | ||
145 | 50 | public string backend_name { get; } | ||
146 | 51 | public string backend_version { get; } | ||
147 | 52 | public string owner { owned get; } | ||
148 | 53 | public signal void changed (); | ||
149 | 54 | } | ||
150 | 55 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_authorization_result_get_type ()")] | ||
151 | 56 | public class AuthorizationResult : GLib.Object { | ||
152 | 57 | [CCode (has_construct_function = false)] | ||
153 | 58 | public AuthorizationResult (bool is_authorized, bool is_challenge, Polkit.Details? details); | ||
154 | 59 | public unowned Polkit.Details get_details (); | ||
155 | 60 | public bool get_dismissed (); | ||
156 | 61 | public bool get_is_authorized (); | ||
157 | 62 | public bool get_is_challenge (); | ||
158 | 63 | public bool get_retains_authorization (); | ||
159 | 64 | public unowned string get_temporary_authorization_id (); | ||
160 | 65 | } | ||
161 | 66 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_details_get_type ()")] | ||
162 | 67 | public class Details : GLib.Object { | ||
163 | 68 | [CCode (has_construct_function = false)] | ||
164 | 69 | public Details (); | ||
165 | 70 | [CCode (array_length = false, array_null_terminated = true)] | ||
166 | 71 | public string[] get_keys (); | ||
167 | 72 | public void insert (string key, string? value); | ||
168 | 73 | public unowned string lookup (string key); | ||
169 | 74 | } | ||
170 | 75 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_permission_get_type ()")] | ||
171 | 76 | public class Permission : GLib.Permission, GLib.AsyncInitable, GLib.Initable { | ||
172 | 77 | [CCode (cname = "polkit_permission_new", has_construct_function = false)] | ||
173 | 78 | public async Permission (string action_id, Polkit.Subject? subject, GLib.Cancellable? cancellable) throws GLib.Error; | ||
174 | 79 | public unowned string get_action_id (); | ||
175 | 80 | public unowned Polkit.Subject get_subject (); | ||
176 | 81 | [CCode (has_construct_function = false, type = "GPermission*")] | ||
177 | 82 | public Permission.sync (string action_id, Polkit.Subject? subject, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
178 | 83 | public string action_id { get; construct; } | ||
179 | 84 | public Polkit.Subject subject { get; construct; } | ||
180 | 85 | } | ||
181 | 86 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_system_bus_name_get_type ()")] | ||
182 | 87 | public class SystemBusName : GLib.Object, Polkit.Subject { | ||
183 | 88 | [CCode (has_construct_function = false)] | ||
184 | 89 | protected SystemBusName (); | ||
185 | 90 | public unowned string get_name (); | ||
186 | 91 | public Polkit.Subject get_process_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
187 | 92 | public static Polkit.Subject @new (string name); | ||
188 | 93 | public void set_name (string name); | ||
189 | 94 | public string name { get; set construct; } | ||
190 | 95 | } | ||
191 | 96 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_temporary_authorization_get_type ()")] | ||
192 | 97 | public class TemporaryAuthorization : GLib.Object { | ||
193 | 98 | [CCode (has_construct_function = false)] | ||
194 | 99 | public TemporaryAuthorization (string id, string action_id, Polkit.Subject subject, uint64 time_obtained, uint64 time_expires); | ||
195 | 100 | public unowned string get_action_id (); | ||
196 | 101 | public unowned string get_id (); | ||
197 | 102 | public Polkit.Subject get_subject (); | ||
198 | 103 | public uint64 get_time_expires (); | ||
199 | 104 | public uint64 get_time_obtained (); | ||
200 | 105 | } | ||
201 | 106 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_group_get_type ()")] | ||
202 | 107 | public class UnixGroup : GLib.Object, Polkit.Identity { | ||
203 | 108 | [CCode (has_construct_function = false)] | ||
204 | 109 | protected UnixGroup (); | ||
205 | 110 | public int get_gid (); | ||
206 | 111 | public static Polkit.Identity @new (int gid); | ||
207 | 112 | public static Polkit.Identity new_for_name (string name) throws GLib.Error; | ||
208 | 113 | public void set_gid (int gid); | ||
209 | 114 | public int gid { get; set construct; } | ||
210 | 115 | } | ||
211 | 116 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_netgroup_get_type ()")] | ||
212 | 117 | public class UnixNetgroup : GLib.Object, Polkit.Identity { | ||
213 | 118 | [CCode (has_construct_function = false)] | ||
214 | 119 | protected UnixNetgroup (); | ||
215 | 120 | public unowned string get_name (); | ||
216 | 121 | public static Polkit.Identity @new (string name); | ||
217 | 122 | public void set_name (string name); | ||
218 | 123 | public string name { get; set construct; } | ||
219 | 124 | } | ||
220 | 125 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_process_get_type ()")] | ||
221 | 126 | public class UnixProcess : GLib.Object, Polkit.Subject { | ||
222 | 127 | [CCode (has_construct_function = false)] | ||
223 | 128 | protected UnixProcess (); | ||
224 | 129 | public int get_owner () throws GLib.Error; | ||
225 | 130 | public int get_pid (); | ||
226 | 131 | public uint64 get_start_time (); | ||
227 | 132 | public int get_uid (); | ||
228 | 133 | public static Polkit.Subject @new (int pid); | ||
229 | 134 | public static Polkit.Subject new_for_owner (int pid, uint64 start_time, int uid); | ||
230 | 135 | public static Polkit.Subject new_full (int pid, uint64 start_time); | ||
231 | 136 | public void set_pid (int pid); | ||
232 | 137 | public void set_start_time (uint64 start_time); | ||
233 | 138 | public void set_uid (int uid); | ||
234 | 139 | public int pid { get; set construct; } | ||
235 | 140 | public uint64 start_time { get; set construct; } | ||
236 | 141 | public int uid { get; set construct; } | ||
237 | 142 | } | ||
238 | 143 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_session_get_type ()")] | ||
239 | 144 | public class UnixSession : GLib.Object, GLib.AsyncInitable, GLib.Initable, Polkit.Subject { | ||
240 | 145 | [CCode (has_construct_function = false)] | ||
241 | 146 | protected UnixSession (); | ||
242 | 147 | public unowned string get_session_id (); | ||
243 | 148 | public static Polkit.Subject @new (string session_id); | ||
244 | 149 | public static async Polkit.Subject new_for_process (int pid, GLib.Cancellable? cancellable) throws GLib.Error; | ||
245 | 150 | public static Polkit.Subject new_for_process_sync (int pid, GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
246 | 151 | public void set_session_id (string session_id); | ||
247 | 152 | public int pid { construct; } | ||
248 | 153 | public string session_id { get; set construct; } | ||
249 | 154 | } | ||
250 | 155 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_unix_user_get_type ()")] | ||
251 | 156 | public class UnixUser : GLib.Object, Polkit.Identity { | ||
252 | 157 | [CCode (has_construct_function = false)] | ||
253 | 158 | protected UnixUser (); | ||
254 | 159 | public unowned string get_name (); | ||
255 | 160 | public int get_uid (); | ||
256 | 161 | public static Polkit.Identity @new (int uid); | ||
257 | 162 | public static Polkit.Identity new_for_name (string name) throws GLib.Error; | ||
258 | 163 | public void set_uid (int uid); | ||
259 | 164 | public int uid { get; set construct; } | ||
260 | 165 | } | ||
261 | 166 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_identity_get_type ()")] | ||
262 | 167 | public interface Identity : GLib.Object { | ||
263 | 168 | public abstract bool equal (Polkit.Identity b); | ||
264 | 169 | public static Polkit.Identity from_string (string str) throws GLib.Error; | ||
265 | 170 | public abstract uint hash (); | ||
266 | 171 | public abstract string to_string (); | ||
267 | 172 | } | ||
268 | 173 | [CCode (cheader_filename = "polkit/polkit.h", type_id = "polkit_subject_get_type ()")] | ||
269 | 174 | public interface Subject : GLib.Object { | ||
270 | 175 | public abstract bool equal (Polkit.Subject b); | ||
271 | 176 | public abstract async bool exists (GLib.Cancellable? cancellable) throws GLib.Error; | ||
272 | 177 | public abstract bool exists_sync (GLib.Cancellable? cancellable = null) throws GLib.Error; | ||
273 | 178 | public static Polkit.Subject from_string (string str) throws GLib.Error; | ||
274 | 179 | public abstract uint hash (); | ||
275 | 180 | public abstract string to_string (); | ||
276 | 181 | } | ||
277 | 182 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_AUTHORITY_FEATURES_", type_id = "polkit_authority_features_get_type ()")] | ||
278 | 183 | [Flags] | ||
279 | 184 | public enum AuthorityFeatures { | ||
280 | 185 | NONE, | ||
281 | 186 | TEMPORARY_AUTHORIZATION | ||
282 | 187 | } | ||
283 | 188 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_CHECK_AUTHORIZATION_FLAGS_", type_id = "polkit_check_authorization_flags_get_type ()")] | ||
284 | 189 | [Flags] | ||
285 | 190 | public enum CheckAuthorizationFlags { | ||
286 | 191 | NONE, | ||
287 | 192 | ALLOW_USER_INTERACTION | ||
288 | 193 | } | ||
289 | 194 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_IMPLICIT_AUTHORIZATION_", type_id = "polkit_implicit_authorization_get_type ()")] | ||
290 | 195 | public enum ImplicitAuthorization { | ||
291 | 196 | UNKNOWN, | ||
292 | 197 | NOT_AUTHORIZED, | ||
293 | 198 | AUTHENTICATION_REQUIRED, | ||
294 | 199 | ADMINISTRATOR_AUTHENTICATION_REQUIRED, | ||
295 | 200 | AUTHENTICATION_REQUIRED_RETAINED, | ||
296 | 201 | ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED, | ||
297 | 202 | AUTHORIZED; | ||
298 | 203 | public static bool from_string (string string, Polkit.ImplicitAuthorization out_implicit_authorization); | ||
299 | 204 | public static unowned string to_string (Polkit.ImplicitAuthorization implicit_authorization); | ||
300 | 205 | } | ||
301 | 206 | [CCode (cheader_filename = "polkit/polkit.h", cprefix = "POLKIT_ERROR_")] | ||
302 | 207 | public errordomain Error { | ||
303 | 208 | FAILED, | ||
304 | 209 | CANCELLED, | ||
305 | 210 | NOT_SUPPORTED, | ||
306 | 211 | NOT_AUTHORIZED; | ||
307 | 212 | public static GLib.Quark quark (); | ||
308 | 213 | } | ||
309 | 214 | [CCode (cheader_filename = "polkit/polkit.h")] | ||
310 | 215 | public static Polkit.Identity identity_from_string (string str) throws GLib.Error; | ||
311 | 216 | [CCode (cheader_filename = "polkit/polkit.h")] | ||
312 | 217 | public static Polkit.Subject subject_from_string (string str) throws GLib.Error; | ||
313 | 218 | } |