2 <!-- This file was automatically generated from C sources - DO NOT EDIT!
3 To affect the contents of this file, edit the original C definitions,
4 and/or use gtk-doc annotations. -->
5 <repository version="1.1"
6 xmlns="http://www.gtk.org/introspection/core/1.0"
7 xmlns:c="http://www.gtk.org/introspection/c/1.0"
8 xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
9 <include name="GLib" version="2.0"/>
10 <include name="GObject" version="2.0"/>
11 <include name="Gio" version="2.0"/>
12 <package name="gio-2.0"/>
13 <package name="glib-2.0"/>
14 <package name="gobject-2.0"/>
15 <namespace name="Polkit"
17 shared-library="libpolkit-gobject-1.so.0"
19 <class name="ActionDescription"
20 c:type="PolkitActionDescription"
21 parent="GObject.Object"
22 glib:type-name="PolkitActionDescription"
23 glib:get-type="polkit_action_description_get_type"
24 glib:type-struct="ActionDescriptionClass">
25 <method name="get_action_id"
26 c:identifier="polkit_action_description_get_action_id">
27 <return-value transfer-ownership="none">
28 <type name="utf8" c:type="gchar*"/>
31 <method name="get_description"
32 c:identifier="polkit_action_description_get_description">
33 <return-value transfer-ownership="none">
34 <type name="utf8" c:type="gchar*"/>
37 <method name="get_message"
38 c:identifier="polkit_action_description_get_message">
39 <return-value transfer-ownership="none">
40 <type name="utf8" c:type="gchar*"/>
43 <method name="get_vendor_name"
44 c:identifier="polkit_action_description_get_vendor_name">
45 <return-value transfer-ownership="none">
46 <type name="utf8" c:type="gchar*"/>
49 <method name="get_vendor_url"
50 c:identifier="polkit_action_description_get_vendor_url">
51 <return-value transfer-ownership="none">
52 <type name="utf8" c:type="gchar*"/>
55 <method name="get_icon_name"
56 c:identifier="polkit_action_description_get_icon_name">
57 <return-value transfer-ownership="none">
58 <type name="utf8" c:type="gchar*"/>
61 <method name="get_implicit_any"
62 c:identifier="polkit_action_description_get_implicit_any">
63 <return-value transfer-ownership="full">
64 <type name="ImplicitAuthorization"
65 c:type="PolkitImplicitAuthorization"/>
68 <method name="get_implicit_inactive"
69 c:identifier="polkit_action_description_get_implicit_inactive">
70 <return-value transfer-ownership="full">
71 <type name="ImplicitAuthorization"
72 c:type="PolkitImplicitAuthorization"/>
75 <method name="get_implicit_active"
76 c:identifier="polkit_action_description_get_implicit_active">
77 <return-value transfer-ownership="full">
78 <type name="ImplicitAuthorization"
79 c:type="PolkitImplicitAuthorization"/>
82 <method name="get_annotation"
83 c:identifier="polkit_action_description_get_annotation">
84 <return-value transfer-ownership="none">
85 <type name="utf8" c:type="gchar*"/>
88 <parameter name="key" transfer-ownership="none">
89 <type name="utf8" c:type="gchar*"/>
93 <method name="get_annotation_keys"
94 c:identifier="polkit_action_description_get_annotation_keys">
95 <return-value transfer-ownership="full">
96 <array c:type="gchar**">
102 <record name="ActionDescriptionClass"
103 c:type="PolkitActionDescriptionClass"
104 glib:is-gtype-struct-for="ActionDescription">
106 <class name="Authority"
107 c:type="PolkitAuthority"
108 parent="GObject.Object"
109 glib:type-name="PolkitAuthority"
110 glib:get-type="polkit_authority_get_type"
111 glib:type-struct="AuthorityClass">
112 <function name="get" c:identifier="polkit_authority_get">
113 <return-value transfer-ownership="full">
114 <type name="Authority" c:type="PolkitAuthority*"/>
117 <method name="get_backend_name"
118 c:identifier="polkit_authority_get_backend_name">
119 <return-value transfer-ownership="none">
120 <type name="utf8" c:type="gchar*"/>
123 <method name="get_backend_version"
124 c:identifier="polkit_authority_get_backend_version">
125 <return-value transfer-ownership="none">
126 <type name="utf8" c:type="gchar*"/>
129 <method name="get_backend_features"
130 c:identifier="polkit_authority_get_backend_features">
131 <return-value transfer-ownership="full">
132 <type name="AuthorityFeatures" c:type="PolkitAuthorityFeatures"/>
135 <method name="enumerate_actions_sync"
136 c:identifier="polkit_authority_enumerate_actions_sync"
139 <return-value transfer-ownership="full">
140 <type name="GLib.List" c:type="GList*">
141 <type name="any" c:type="gpointer"/>
145 <parameter name="cancellable"
146 transfer-ownership="none"
148 <type name="Gio.Cancellable" c:type="GCancellable*"/>
152 <method name="enumerate_users_sync"
153 c:identifier="polkit_authority_enumerate_users_sync"
156 <return-value transfer-ownership="full">
157 <type name="GLib.List" c:type="GList*">
158 <type name="any" c:type="gpointer"/>
162 <parameter name="cancellable"
163 transfer-ownership="none"
165 <type name="Gio.Cancellable" c:type="GCancellable*"/>
169 <method name="enumerate_groups_sync"
170 c:identifier="polkit_authority_enumerate_groups_sync"
173 <return-value transfer-ownership="full">
174 <type name="GLib.List" c:type="GList*">
175 <type name="any" c:type="gpointer"/>
179 <parameter name="cancellable"
180 transfer-ownership="none"
182 <type name="Gio.Cancellable" c:type="GCancellable*"/>
186 <method name="check_authorization_sync"
187 c:identifier="polkit_authority_check_authorization_sync"
189 <return-value transfer-ownership="full">
190 <type name="AuthorizationResult"
191 c:type="PolkitAuthorizationResult*"/>
194 <parameter name="subject" transfer-ownership="none">
195 <type name="Subject" c:type="PolkitSubject*"/>
197 <parameter name="action_id" transfer-ownership="none">
198 <type name="utf8" c:type="gchar*"/>
200 <parameter name="details" transfer-ownership="none">
201 <type name="Details" c:type="PolkitDetails*"/>
203 <parameter name="flags" transfer-ownership="none">
204 <type name="CheckAuthorizationFlags"
205 c:type="PolkitCheckAuthorizationFlags"/>
207 <parameter name="cancellable"
208 transfer-ownership="none"
210 <type name="Gio.Cancellable" c:type="GCancellable*"/>
214 <method name="register_authentication_agent_sync"
215 c:identifier="polkit_authority_register_authentication_agent_sync"
217 <return-value transfer-ownership="none">
218 <type name="boolean" c:type="gboolean"/>
221 <parameter name="subject" transfer-ownership="none">
222 <type name="Subject" c:type="PolkitSubject*"/>
224 <parameter name="locale" transfer-ownership="none">
225 <type name="utf8" c:type="gchar*"/>
227 <parameter name="object_path" transfer-ownership="none">
228 <type name="utf8" c:type="gchar*"/>
230 <parameter name="cancellable"
231 transfer-ownership="none"
233 <type name="Gio.Cancellable" c:type="GCancellable*"/>
237 <method name="unregister_authentication_agent_sync"
238 c:identifier="polkit_authority_unregister_authentication_agent_sync"
240 <return-value transfer-ownership="none">
241 <type name="boolean" c:type="gboolean"/>
244 <parameter name="subject" transfer-ownership="none">
245 <type name="Subject" c:type="PolkitSubject*"/>
247 <parameter name="object_path" transfer-ownership="none">
248 <type name="utf8" c:type="gchar*"/>
250 <parameter name="cancellable"
251 transfer-ownership="none"
253 <type name="Gio.Cancellable" c:type="GCancellable*"/>
257 <method name="authentication_agent_response_sync"
258 c:identifier="polkit_authority_authentication_agent_response_sync"
260 <return-value transfer-ownership="none">
261 <type name="boolean" c:type="gboolean"/>
264 <parameter name="cookie" transfer-ownership="none">
265 <type name="utf8" c:type="gchar*"/>
267 <parameter name="identity" transfer-ownership="none">
268 <type name="Identity" c:type="PolkitIdentity*"/>
270 <parameter name="cancellable"
271 transfer-ownership="none"
273 <type name="Gio.Cancellable" c:type="GCancellable*"/>
277 <method name="enumerate_temporary_authorizations_sync"
278 c:identifier="polkit_authority_enumerate_temporary_authorizations_sync"
281 <return-value transfer-ownership="full">
282 <type name="GLib.List" c:type="GList*">
283 <type name="any" c:type="gpointer"/>
287 <parameter name="subject" transfer-ownership="none">
288 <type name="Subject" c:type="PolkitSubject*"/>
290 <parameter name="cancellable"
291 transfer-ownership="none"
293 <type name="Gio.Cancellable" c:type="GCancellable*"/>
297 <method name="revoke_temporary_authorizations_sync"
298 c:identifier="polkit_authority_revoke_temporary_authorizations_sync"
300 <return-value transfer-ownership="none">
301 <type name="boolean" c:type="gboolean"/>
304 <parameter name="subject" transfer-ownership="none">
305 <type name="Subject" c:type="PolkitSubject*"/>
307 <parameter name="cancellable"
308 transfer-ownership="none"
310 <type name="Gio.Cancellable" c:type="GCancellable*"/>
314 <method name="revoke_temporary_authorization_by_id_sync"
315 c:identifier="polkit_authority_revoke_temporary_authorization_by_id_sync"
317 <return-value transfer-ownership="none">
318 <type name="boolean" c:type="gboolean"/>
321 <parameter name="id" transfer-ownership="none">
322 <type name="utf8" c:type="gchar*"/>
324 <parameter name="cancellable"
325 transfer-ownership="none"
327 <type name="Gio.Cancellable" c:type="GCancellable*"/>
331 <method name="add_lockdown_for_action_sync"
332 c:identifier="polkit_authority_add_lockdown_for_action_sync"
334 <return-value transfer-ownership="none">
335 <type name="boolean" c:type="gboolean"/>
338 <parameter name="action_id" transfer-ownership="none">
339 <type name="utf8" c:type="gchar*"/>
341 <parameter name="cancellable"
342 transfer-ownership="none"
344 <type name="Gio.Cancellable" c:type="GCancellable*"/>
348 <method name="remove_lockdown_for_action_sync"
349 c:identifier="polkit_authority_remove_lockdown_for_action_sync"
351 <return-value transfer-ownership="none">
352 <type name="boolean" c:type="gboolean"/>
355 <parameter name="action_id" transfer-ownership="none">
356 <type name="utf8" c:type="gchar*"/>
358 <parameter name="cancellable"
359 transfer-ownership="none"
361 <type name="Gio.Cancellable" c:type="GCancellable*"/>
365 <method name="enumerate_actions"
366 c:identifier="polkit_authority_enumerate_actions">
367 <return-value transfer-ownership="none">
368 <type name="none" c:type="void"/>
371 <parameter name="cancellable"
372 transfer-ownership="none"
374 <type name="Gio.Cancellable" c:type="GCancellable*"/>
376 <parameter name="callback"
377 transfer-ownership="none"
380 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
382 <parameter name="user_data" transfer-ownership="none">
383 <type name="any" c:type="gpointer"/>
387 <method name="enumerate_actions_finish"
388 c:identifier="polkit_authority_enumerate_actions_finish"
391 <return-value transfer-ownership="full">
392 <type name="GLib.List" c:type="GList*">
393 <type name="any" c:type="gpointer"/>
397 <parameter name="res" transfer-ownership="none">
398 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
402 <method name="check_authorization"
403 c:identifier="polkit_authority_check_authorization">
404 <return-value transfer-ownership="none">
405 <type name="none" c:type="void"/>
408 <parameter name="subject" transfer-ownership="none">
409 <type name="Subject" c:type="PolkitSubject*"/>
411 <parameter name="action_id" transfer-ownership="none">
412 <type name="utf8" c:type="gchar*"/>
414 <parameter name="details" transfer-ownership="none">
415 <type name="Details" c:type="PolkitDetails*"/>
417 <parameter name="flags" transfer-ownership="none">
418 <type name="CheckAuthorizationFlags"
419 c:type="PolkitCheckAuthorizationFlags"/>
421 <parameter name="cancellable"
422 transfer-ownership="none"
424 <type name="Gio.Cancellable" c:type="GCancellable*"/>
426 <parameter name="callback"
427 transfer-ownership="none"
430 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
432 <parameter name="user_data" transfer-ownership="none">
433 <type name="any" c:type="gpointer"/>
437 <method name="check_authorization_finish"
438 c:identifier="polkit_authority_check_authorization_finish"
440 <return-value transfer-ownership="full">
441 <type name="AuthorizationResult"
442 c:type="PolkitAuthorizationResult*"/>
445 <parameter name="res" transfer-ownership="none">
446 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
450 <method name="register_authentication_agent"
451 c:identifier="polkit_authority_register_authentication_agent">
452 <return-value transfer-ownership="none">
453 <type name="none" c:type="void"/>
456 <parameter name="subject" transfer-ownership="none">
457 <type name="Subject" c:type="PolkitSubject*"/>
459 <parameter name="locale" transfer-ownership="none">
460 <type name="utf8" c:type="gchar*"/>
462 <parameter name="object_path" transfer-ownership="none">
463 <type name="utf8" c:type="gchar*"/>
465 <parameter name="cancellable"
466 transfer-ownership="none"
468 <type name="Gio.Cancellable" c:type="GCancellable*"/>
470 <parameter name="callback"
471 transfer-ownership="none"
474 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
476 <parameter name="user_data" transfer-ownership="none">
477 <type name="any" c:type="gpointer"/>
481 <method name="register_authentication_agent_finish"
482 c:identifier="polkit_authority_register_authentication_agent_finish"
484 <return-value transfer-ownership="none">
485 <type name="boolean" c:type="gboolean"/>
488 <parameter name="res" transfer-ownership="none">
489 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
493 <method name="unregister_authentication_agent"
494 c:identifier="polkit_authority_unregister_authentication_agent">
495 <return-value transfer-ownership="none">
496 <type name="none" c:type="void"/>
499 <parameter name="subject" transfer-ownership="none">
500 <type name="Subject" c:type="PolkitSubject*"/>
502 <parameter name="object_path" transfer-ownership="none">
503 <type name="utf8" c:type="gchar*"/>
505 <parameter name="cancellable"
506 transfer-ownership="none"
508 <type name="Gio.Cancellable" c:type="GCancellable*"/>
510 <parameter name="callback"
511 transfer-ownership="none"
514 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
516 <parameter name="user_data" transfer-ownership="none">
517 <type name="any" c:type="gpointer"/>
521 <method name="unregister_authentication_agent_finish"
522 c:identifier="polkit_authority_unregister_authentication_agent_finish"
524 <return-value transfer-ownership="none">
525 <type name="boolean" c:type="gboolean"/>
528 <parameter name="res" transfer-ownership="none">
529 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
533 <method name="authentication_agent_response"
534 c:identifier="polkit_authority_authentication_agent_response">
535 <return-value transfer-ownership="none">
536 <type name="none" c:type="void"/>
539 <parameter name="cookie" transfer-ownership="none">
540 <type name="utf8" c:type="gchar*"/>
542 <parameter name="identity" transfer-ownership="none">
543 <type name="Identity" c:type="PolkitIdentity*"/>
545 <parameter name="cancellable"
546 transfer-ownership="none"
548 <type name="Gio.Cancellable" c:type="GCancellable*"/>
550 <parameter name="callback"
551 transfer-ownership="none"
554 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
556 <parameter name="user_data" transfer-ownership="none">
557 <type name="any" c:type="gpointer"/>
561 <method name="authentication_agent_response_finish"
562 c:identifier="polkit_authority_authentication_agent_response_finish"
564 <return-value transfer-ownership="none">
565 <type name="boolean" c:type="gboolean"/>
568 <parameter name="res" transfer-ownership="none">
569 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
573 <method name="enumerate_temporary_authorizations"
574 c:identifier="polkit_authority_enumerate_temporary_authorizations">
575 <return-value transfer-ownership="none">
576 <type name="none" c:type="void"/>
579 <parameter name="subject" transfer-ownership="none">
580 <type name="Subject" c:type="PolkitSubject*"/>
582 <parameter name="cancellable"
583 transfer-ownership="none"
585 <type name="Gio.Cancellable" c:type="GCancellable*"/>
587 <parameter name="callback"
588 transfer-ownership="none"
591 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
593 <parameter name="user_data" transfer-ownership="none">
594 <type name="any" c:type="gpointer"/>
598 <method name="enumerate_temporary_authorizations_finish"
599 c:identifier="polkit_authority_enumerate_temporary_authorizations_finish"
602 <return-value transfer-ownership="full">
603 <type name="GLib.List" c:type="GList*">
604 <type name="any" c:type="gpointer"/>
608 <parameter name="res" transfer-ownership="none">
609 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
613 <method name="revoke_temporary_authorizations"
614 c:identifier="polkit_authority_revoke_temporary_authorizations">
615 <return-value transfer-ownership="none">
616 <type name="none" c:type="void"/>
619 <parameter name="subject" transfer-ownership="none">
620 <type name="Subject" c:type="PolkitSubject*"/>
622 <parameter name="cancellable"
623 transfer-ownership="none"
625 <type name="Gio.Cancellable" c:type="GCancellable*"/>
627 <parameter name="callback"
628 transfer-ownership="none"
631 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
633 <parameter name="user_data" transfer-ownership="none">
634 <type name="any" c:type="gpointer"/>
638 <method name="revoke_temporary_authorizations_finish"
639 c:identifier="polkit_authority_revoke_temporary_authorizations_finish"
641 <return-value transfer-ownership="none">
642 <type name="boolean" c:type="gboolean"/>
645 <parameter name="res" transfer-ownership="none">
646 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
650 <method name="revoke_temporary_authorization_by_id"
651 c:identifier="polkit_authority_revoke_temporary_authorization_by_id">
652 <return-value transfer-ownership="none">
653 <type name="none" c:type="void"/>
656 <parameter name="id" transfer-ownership="none">
657 <type name="utf8" c:type="gchar*"/>
659 <parameter name="cancellable"
660 transfer-ownership="none"
662 <type name="Gio.Cancellable" c:type="GCancellable*"/>
664 <parameter name="callback"
665 transfer-ownership="none"
668 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
670 <parameter name="user_data" transfer-ownership="none">
671 <type name="any" c:type="gpointer"/>
675 <method name="revoke_temporary_authorization_by_id_finish"
676 c:identifier="polkit_authority_revoke_temporary_authorization_by_id_finish"
678 <return-value transfer-ownership="none">
679 <type name="boolean" c:type="gboolean"/>
682 <parameter name="res" transfer-ownership="none">
683 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
687 <method name="add_lockdown_for_action"
688 c:identifier="polkit_authority_add_lockdown_for_action">
689 <return-value transfer-ownership="none">
690 <type name="none" c:type="void"/>
693 <parameter name="action_id" transfer-ownership="none">
694 <type name="utf8" c:type="gchar*"/>
696 <parameter name="cancellable"
697 transfer-ownership="none"
699 <type name="Gio.Cancellable" c:type="GCancellable*"/>
701 <parameter name="callback"
702 transfer-ownership="none"
705 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
707 <parameter name="user_data" transfer-ownership="none">
708 <type name="any" c:type="gpointer"/>
712 <method name="add_lockdown_for_action_finish"
713 c:identifier="polkit_authority_add_lockdown_for_action_finish"
715 <return-value transfer-ownership="none">
716 <type name="boolean" c:type="gboolean"/>
719 <parameter name="res" transfer-ownership="none">
720 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
724 <method name="remove_lockdown_for_action"
725 c:identifier="polkit_authority_remove_lockdown_for_action">
726 <return-value transfer-ownership="none">
727 <type name="none" c:type="void"/>
730 <parameter name="action_id" transfer-ownership="none">
731 <type name="utf8" c:type="gchar*"/>
733 <parameter name="cancellable"
734 transfer-ownership="none"
736 <type name="Gio.Cancellable" c:type="GCancellable*"/>
738 <parameter name="callback"
739 transfer-ownership="none"
742 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
744 <parameter name="user_data" transfer-ownership="none">
745 <type name="any" c:type="gpointer"/>
749 <method name="remove_lockdown_for_action_finish"
750 c:identifier="polkit_authority_remove_lockdown_for_action_finish"
752 <return-value transfer-ownership="none">
753 <type name="boolean" c:type="gboolean"/>
756 <parameter name="res" transfer-ownership="none">
757 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
761 <property name="backend-features" transfer-ownership="none">
762 <type name="AuthorityFeatures" c:type="PolkitAuthorityFeatures"/>
764 <property name="backend-name" transfer-ownership="none">
765 <type name="utf8" c:type="gchararray"/>
767 <property name="backend-version" transfer-ownership="none">
768 <type name="utf8" c:type="gchararray"/>
770 <glib:signal name="changed">
771 <return-value transfer-ownership="full">
772 <type name="none" c:type="void"/>
776 <record name="AuthorityClass"
777 c:type="PolkitAuthorityClass"
778 glib:is-gtype-struct-for="Authority">
780 <bitfield name="AuthorityFeatures"
781 glib:type-name="PolkitAuthorityFeatures"
782 glib:get-type="polkit_authority_features_get_type"
783 c:type="PolkitAuthorityFeatures">
784 <doc xml:whitespace="preserve">Flags describing features supported by the Authority implementation.</doc>
787 c:identifier="POLKIT_AUTHORITY_FEATURES_NONE"
789 <member name="temporary_authorization"
791 c:identifier="POLKIT_AUTHORITY_FEATURES_TEMPORARY_AUTHORIZATION"
792 glib:nick="temporary-authorization"/>
793 <member name="lockdown"
795 c:identifier="POLKIT_AUTHORITY_FEATURES_LOCKDOWN"
796 glib:nick="lockdown"/>
798 <class name="AuthorizationResult"
799 c:type="PolkitAuthorizationResult"
800 parent="GObject.Object"
801 glib:type-name="PolkitAuthorizationResult"
802 glib:get-type="polkit_authorization_result_get_type"
803 glib:type-struct="AuthorizationResultClass">
804 <constructor name="new" c:identifier="polkit_authorization_result_new">
805 <return-value transfer-ownership="full">
806 <type name="AuthorizationResult"
807 c:type="PolkitAuthorizationResult*"/>
810 <parameter name="is_authorized" transfer-ownership="none">
811 <type name="boolean" c:type="gboolean"/>
813 <parameter name="is_challenge" transfer-ownership="none">
814 <type name="boolean" c:type="gboolean"/>
816 <parameter name="details" transfer-ownership="none">
817 <type name="Details" c:type="PolkitDetails*"/>
821 <method name="get_details"
822 c:identifier="polkit_authorization_result_get_details">
823 <return-value transfer-ownership="full">
824 <type name="Details" c:type="PolkitDetails*"/>
827 <method name="get_is_authorized"
828 c:identifier="polkit_authorization_result_get_is_authorized">
829 <return-value transfer-ownership="none">
830 <type name="boolean" c:type="gboolean"/>
833 <method name="get_is_challenge"
834 c:identifier="polkit_authorization_result_get_is_challenge">
835 <return-value transfer-ownership="none">
836 <type name="boolean" c:type="gboolean"/>
839 <method name="get_retains_authorization"
840 c:identifier="polkit_authorization_result_get_retains_authorization">
841 <return-value transfer-ownership="none">
842 <type name="boolean" c:type="gboolean"/>
845 <method name="get_temporary_authorization_id"
846 c:identifier="polkit_authorization_result_get_temporary_authorization_id">
847 <return-value transfer-ownership="none">
848 <type name="utf8" c:type="gchar*"/>
851 <method name="get_locked_down"
852 c:identifier="polkit_authorization_result_get_locked_down">
853 <return-value transfer-ownership="none">
854 <type name="boolean" c:type="gboolean"/>
858 <record name="AuthorizationResultClass"
859 c:type="PolkitAuthorizationResultClass"
860 glib:is-gtype-struct-for="AuthorizationResult">
862 <bitfield name="CheckAuthorizationFlags"
863 glib:type-name="PolkitCheckAuthorizationFlags"
864 glib:get-type="polkit_check_authorization_flags_get_type"
865 c:type="PolkitCheckAuthorizationFlags">
866 <doc xml:whitespace="preserve">Possible flags when checking authorizations.</doc>
869 c:identifier="POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE"
871 <member name="allow_user_interaction"
873 c:identifier="POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION"
874 glib:nick="allow-user-interaction"/>
876 <class name="Details"
877 c:type="PolkitDetails"
878 parent="GObject.Object"
879 glib:type-name="PolkitDetails"
880 glib:get-type="polkit_details_get_type"
881 glib:type-struct="DetailsClass">
882 <constructor name="new" c:identifier="polkit_details_new">
883 <return-value transfer-ownership="full">
884 <type name="Details" c:type="PolkitDetails*"/>
887 <method name="lookup" c:identifier="polkit_details_lookup">
888 <return-value transfer-ownership="none">
889 <type name="utf8" c:type="gchar*"/>
892 <parameter name="key" transfer-ownership="none">
893 <type name="utf8" c:type="gchar*"/>
897 <method name="insert" c:identifier="polkit_details_insert">
898 <return-value transfer-ownership="none">
899 <type name="none" c:type="void"/>
902 <parameter name="key" transfer-ownership="none">
903 <type name="utf8" c:type="gchar*"/>
905 <parameter name="value" transfer-ownership="none">
906 <type name="utf8" c:type="gchar*"/>
910 <method name="get_keys" c:identifier="polkit_details_get_keys">
911 <return-value transfer-ownership="full">
912 <array c:type="gchar**">
918 <record name="DetailsClass"
919 c:type="PolkitDetailsClass"
920 glib:is-gtype-struct-for="Details">
922 <enumeration name="Error"
923 glib:type-name="PolkitError"
924 glib:get-type="polkit_error_get_type"
926 glib:error-quark="polkit_error_quark">
927 <doc xml:whitespace="preserve">Possible error when using PolicyKit.</doc>
928 <member name="failed"
930 c:identifier="POLKIT_ERROR_FAILED"
932 <member name="cancelled"
934 c:identifier="POLKIT_ERROR_CANCELLED"
935 glib:nick="cancelled"/>
936 <member name="not_supported"
938 c:identifier="POLKIT_ERROR_NOT_SUPPORTED"
939 glib:nick="not-supported"/>
940 <member name="not_authorized"
942 c:identifier="POLKIT_ERROR_NOT_AUTHORIZED"
943 glib:nick="not-authorized"/>
945 <interface name="Identity"
946 c:type="PolkitIdentity"
947 glib:type-name="PolkitIdentity"
948 glib:get-type="polkit_identity_get_type"
949 glib:type-struct="IdentityIface">
950 <virtual-method name="hash" invoker="hash">
951 <return-value transfer-ownership="none">
952 <type name="uint" c:type="guint"/>
955 <virtual-method name="equal" invoker="equal">
956 <return-value transfer-ownership="none">
957 <type name="boolean" c:type="gboolean"/>
960 <parameter name="b" transfer-ownership="none">
961 <type name="Identity" c:type="PolkitIdentity*"/>
965 <virtual-method name="to_string" invoker="to_string">
966 <return-value transfer-ownership="full">
967 <type name="utf8" c:type="gchar*"/>
970 <method name="hash" c:identifier="polkit_identity_hash">
971 <return-value transfer-ownership="none">
972 <type name="uint" c:type="guint"/>
975 <method name="equal" c:identifier="polkit_identity_equal">
976 <return-value transfer-ownership="none">
977 <type name="boolean" c:type="gboolean"/>
980 <parameter name="b" transfer-ownership="none">
981 <type name="Identity" c:type="PolkitIdentity*"/>
985 <method name="to_string" c:identifier="polkit_identity_to_string">
986 <return-value transfer-ownership="full">
987 <type name="utf8" c:type="gchar*"/>
991 <record name="IdentityIface"
992 c:type="PolkitIdentityIface"
993 glib:is-gtype-struct-for="Identity">
994 <doc xml:whitespace="preserve">An interface for identities.</doc>
995 <field name="parent_iface">
996 <type name="GObject.TypeInterface" c:type="GTypeInterface"/>
999 <callback name="hash" c:type="hash">
1000 <return-value transfer-ownership="none">
1001 <type name="uint" c:type="guint"/>
1004 <parameter name="identity" transfer-ownership="none">
1005 <type name="Identity" c:type="PolkitIdentity*"/>
1010 <field name="equal">
1011 <callback name="equal" c:type="equal">
1012 <return-value transfer-ownership="none">
1013 <type name="boolean" c:type="gboolean"/>
1016 <parameter name="a" transfer-ownership="none">
1017 <type name="Identity" c:type="PolkitIdentity*"/>
1019 <parameter name="b" transfer-ownership="none">
1020 <type name="Identity" c:type="PolkitIdentity*"/>
1025 <field name="to_string">
1026 <callback name="to_string" c:type="to_string">
1027 <return-value transfer-ownership="full">
1028 <type name="utf8" c:type="gchar*"/>
1031 <parameter name="identity" transfer-ownership="none">
1032 <type name="Identity" c:type="PolkitIdentity*"/>
1038 <enumeration name="ImplicitAuthorization"
1039 glib:type-name="PolkitImplicitAuthorization"
1040 glib:get-type="polkit_implicit_authorization_get_type"
1041 c:type="PolkitImplicitAuthorization">
1042 <doc xml:whitespace="preserve">Possible implicit authorizations.</doc>
1043 <member name="unknown"
1045 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_UNKNOWN"
1046 glib:nick="unknown"/>
1047 <member name="not_authorized"
1049 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED"
1050 glib:nick="not-authorized"/>
1051 <member name="authentication_required"
1053 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED"
1054 glib:nick="authentication-required"/>
1055 <member name="administrator_authentication_required"
1057 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED"
1058 glib:nick="administrator-authentication-required"/>
1059 <member name="authentication_required_retained"
1061 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_AUTHENTICATION_REQUIRED_RETAINED"
1062 glib:nick="authentication-required-retained"/>
1063 <member name="administrator_authentication_required_retained"
1065 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_ADMINISTRATOR_AUTHENTICATION_REQUIRED_RETAINED"
1066 glib:nick="administrator-authentication-required-retained"/>
1067 <member name="authorized"
1069 c:identifier="POLKIT_IMPLICIT_AUTHORIZATION_AUTHORIZED"
1070 glib:nick="authorized"/>
1072 <constant name="POLKIT_INSIDE_POLKIT_H" value="1">
1075 <interface name="Subject"
1076 c:type="PolkitSubject"
1077 glib:type-name="PolkitSubject"
1078 glib:get-type="polkit_subject_get_type"
1079 glib:type-struct="SubjectIface">
1080 <virtual-method name="hash" invoker="hash">
1081 <return-value transfer-ownership="none">
1082 <type name="uint" c:type="guint"/>
1085 <virtual-method name="equal" invoker="equal">
1086 <return-value transfer-ownership="none">
1087 <type name="boolean" c:type="gboolean"/>
1090 <parameter name="b" transfer-ownership="none">
1091 <type name="Subject" c:type="PolkitSubject*"/>
1095 <virtual-method name="to_string" invoker="to_string">
1096 <return-value transfer-ownership="full">
1097 <type name="utf8" c:type="gchar*"/>
1100 <virtual-method name="exists" invoker="exists">
1101 <return-value transfer-ownership="none">
1102 <type name="none" c:type="void"/>
1105 <parameter name="cancellable"
1106 transfer-ownership="none"
1108 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1110 <parameter name="callback" transfer-ownership="none">
1111 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
1113 <parameter name="user_data" transfer-ownership="none" closure="3">
1114 <type name="any" c:type="gpointer"/>
1118 <virtual-method name="exists_finish" invoker="exists_finish" throws="1">
1119 <return-value transfer-ownership="none">
1120 <type name="boolean" c:type="gboolean"/>
1123 <parameter name="res" transfer-ownership="none">
1124 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
1128 <virtual-method name="exists_sync" invoker="exists_sync" throws="1">
1129 <return-value transfer-ownership="none">
1130 <type name="boolean" c:type="gboolean"/>
1133 <parameter name="cancellable"
1134 transfer-ownership="none"
1136 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1140 <method name="hash" c:identifier="polkit_subject_hash">
1141 <return-value transfer-ownership="none">
1142 <type name="uint" c:type="guint"/>
1145 <method name="equal" c:identifier="polkit_subject_equal">
1146 <return-value transfer-ownership="none">
1147 <type name="boolean" c:type="gboolean"/>
1150 <parameter name="b" transfer-ownership="none">
1151 <type name="Subject" c:type="PolkitSubject*"/>
1155 <method name="to_string" c:identifier="polkit_subject_to_string">
1156 <return-value transfer-ownership="full">
1157 <type name="utf8" c:type="gchar*"/>
1160 <method name="exists" c:identifier="polkit_subject_exists">
1161 <return-value transfer-ownership="none">
1162 <type name="none" c:type="void"/>
1165 <parameter name="cancellable"
1166 transfer-ownership="none"
1168 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1170 <parameter name="callback"
1171 transfer-ownership="none"
1174 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
1176 <parameter name="user_data" transfer-ownership="none">
1177 <type name="any" c:type="gpointer"/>
1181 <method name="exists_finish"
1182 c:identifier="polkit_subject_exists_finish"
1184 <return-value transfer-ownership="none">
1185 <type name="boolean" c:type="gboolean"/>
1188 <parameter name="res" transfer-ownership="none">
1189 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
1193 <method name="exists_sync"
1194 c:identifier="polkit_subject_exists_sync"
1196 <return-value transfer-ownership="none">
1197 <type name="boolean" c:type="gboolean"/>
1200 <parameter name="cancellable"
1201 transfer-ownership="none"
1203 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1208 <record name="SubjectIface"
1209 c:type="PolkitSubjectIface"
1210 glib:is-gtype-struct-for="Subject">
1211 <doc xml:whitespace="preserve">An interface for subjects.</doc>
1212 <field name="parent_iface">
1213 <type name="GObject.TypeInterface" c:type="GTypeInterface"/>
1216 <callback name="hash" c:type="hash">
1217 <return-value transfer-ownership="none">
1218 <type name="uint" c:type="guint"/>
1221 <parameter name="subject" transfer-ownership="none">
1222 <type name="Subject" c:type="PolkitSubject*"/>
1227 <field name="equal">
1228 <callback name="equal" c:type="equal">
1229 <return-value transfer-ownership="none">
1230 <type name="boolean" c:type="gboolean"/>
1233 <parameter name="a" transfer-ownership="none">
1234 <type name="Subject" c:type="PolkitSubject*"/>
1236 <parameter name="b" transfer-ownership="none">
1237 <type name="Subject" c:type="PolkitSubject*"/>
1242 <field name="to_string">
1243 <callback name="to_string" c:type="to_string">
1244 <return-value transfer-ownership="full">
1245 <type name="utf8" c:type="gchar*"/>
1248 <parameter name="subject" transfer-ownership="none">
1249 <type name="Subject" c:type="PolkitSubject*"/>
1254 <field name="exists">
1255 <callback name="exists" c:type="exists">
1256 <return-value transfer-ownership="none">
1257 <type name="none" c:type="void"/>
1260 <parameter name="subject" transfer-ownership="none">
1261 <type name="Subject" c:type="PolkitSubject*"/>
1263 <parameter name="cancellable"
1264 transfer-ownership="none"
1266 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1268 <parameter name="callback" transfer-ownership="none">
1269 <type name="Gio.AsyncReadyCallback"
1270 c:type="GAsyncReadyCallback"/>
1272 <parameter name="user_data" transfer-ownership="none" closure="3">
1273 <type name="any" c:type="gpointer"/>
1278 <field name="exists_finish">
1279 <callback name="exists_finish" c:type="exists_finish" throws="1">
1280 <return-value transfer-ownership="none">
1281 <type name="boolean" c:type="gboolean"/>
1284 <parameter name="subject" transfer-ownership="none">
1285 <type name="Subject" c:type="PolkitSubject*"/>
1287 <parameter name="res" transfer-ownership="none">
1288 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
1293 <field name="exists_sync">
1294 <callback name="exists_sync" c:type="exists_sync" throws="1">
1295 <return-value transfer-ownership="none">
1296 <type name="boolean" c:type="gboolean"/>
1299 <parameter name="subject" transfer-ownership="none">
1300 <type name="Subject" c:type="PolkitSubject*"/>
1302 <parameter name="cancellable"
1303 transfer-ownership="none"
1305 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1311 <class name="SystemBusName"
1312 c:type="PolkitSystemBusName"
1313 parent="GObject.Object"
1314 glib:type-name="PolkitSystemBusName"
1315 glib:get-type="polkit_system_bus_name_get_type"
1316 glib:type-struct="SystemBusNameClass">
1317 <implements name="Subject"/>
1318 <constructor name="new" c:identifier="polkit_system_bus_name_new">
1319 <return-value transfer-ownership="full">
1320 <type name="SystemBusName" c:type="PolkitSubject*"/>
1323 <parameter name="name" transfer-ownership="none">
1324 <type name="utf8" c:type="gchar*"/>
1328 <method name="get_name" c:identifier="polkit_system_bus_name_get_name">
1329 <return-value transfer-ownership="none">
1330 <type name="utf8" c:type="gchar*"/>
1333 <method name="set_name" c:identifier="polkit_system_bus_name_set_name">
1334 <return-value transfer-ownership="none">
1335 <type name="none" c:type="void"/>
1338 <parameter name="name" transfer-ownership="none">
1339 <type name="utf8" c:type="gchar*"/>
1343 <method name="get_process_sync"
1344 c:identifier="polkit_system_bus_name_get_process_sync"
1346 <return-value transfer-ownership="full">
1347 <type name="Subject" c:type="PolkitSubject*"/>
1350 <parameter name="cancellable"
1351 transfer-ownership="none"
1353 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1357 <property name="name"
1360 transfer-ownership="none">
1361 <type name="utf8" c:type="gchararray"/>
1364 <record name="SystemBusNameClass"
1365 c:type="PolkitSystemBusNameClass"
1366 glib:is-gtype-struct-for="SystemBusName">
1368 <class name="TemporaryAuthorization"
1369 c:type="PolkitTemporaryAuthorization"
1370 parent="GObject.Object"
1371 glib:type-name="PolkitTemporaryAuthorization"
1372 glib:get-type="polkit_temporary_authorization_get_type"
1373 glib:type-struct="TemporaryAuthorizationClass">
1374 <constructor name="new"
1375 c:identifier="polkit_temporary_authorization_new">
1376 <return-value transfer-ownership="full">
1377 <type name="TemporaryAuthorization"
1378 c:type="PolkitTemporaryAuthorization*"/>
1381 <parameter name="id" transfer-ownership="none">
1382 <type name="utf8" c:type="gchar*"/>
1384 <parameter name="action_id" transfer-ownership="none">
1385 <type name="utf8" c:type="gchar*"/>
1387 <parameter name="subject" transfer-ownership="none">
1388 <type name="Subject" c:type="PolkitSubject*"/>
1390 <parameter name="time_obtained" transfer-ownership="none">
1391 <type name="uint64" c:type="guint64"/>
1393 <parameter name="time_expires" transfer-ownership="none">
1394 <type name="uint64" c:type="guint64"/>
1398 <method name="get_id"
1399 c:identifier="polkit_temporary_authorization_get_id">
1400 <return-value transfer-ownership="none">
1401 <type name="utf8" c:type="gchar*"/>
1404 <method name="get_action_id"
1405 c:identifier="polkit_temporary_authorization_get_action_id">
1406 <return-value transfer-ownership="none">
1407 <type name="utf8" c:type="gchar*"/>
1410 <method name="get_subject"
1411 c:identifier="polkit_temporary_authorization_get_subject">
1412 <return-value transfer-ownership="full">
1413 <type name="Subject" c:type="PolkitSubject*"/>
1416 <method name="get_time_obtained"
1417 c:identifier="polkit_temporary_authorization_get_time_obtained">
1418 <return-value transfer-ownership="none">
1419 <type name="uint64" c:type="guint64"/>
1422 <method name="get_time_expires"
1423 c:identifier="polkit_temporary_authorization_get_time_expires">
1424 <return-value transfer-ownership="none">
1425 <type name="uint64" c:type="guint64"/>
1429 <record name="TemporaryAuthorizationClass"
1430 c:type="PolkitTemporaryAuthorizationClass"
1431 glib:is-gtype-struct-for="TemporaryAuthorization">
1433 <class name="UnixGroup"
1434 c:type="PolkitUnixGroup"
1435 parent="GObject.Object"
1436 glib:type-name="PolkitUnixGroup"
1437 glib:get-type="polkit_unix_group_get_type"
1438 glib:type-struct="UnixGroupClass">
1439 <implements name="Identity"/>
1440 <constructor name="new" c:identifier="polkit_unix_group_new">
1441 <return-value transfer-ownership="full">
1442 <type name="UnixGroup" c:type="PolkitIdentity*"/>
1445 <parameter name="gid" transfer-ownership="none">
1446 <type name="int" c:type="gint"/>
1450 <constructor name="new_for_name"
1451 c:identifier="polkit_unix_group_new_for_name"
1453 <return-value transfer-ownership="full">
1454 <type name="UnixGroup" c:type="PolkitIdentity*"/>
1457 <parameter name="name" transfer-ownership="none">
1458 <type name="utf8" c:type="gchar*"/>
1462 <method name="get_gid" c:identifier="polkit_unix_group_get_gid">
1463 <return-value transfer-ownership="none">
1464 <type name="int" c:type="gint"/>
1467 <method name="set_gid" c:identifier="polkit_unix_group_set_gid">
1468 <return-value transfer-ownership="none">
1469 <type name="none" c:type="void"/>
1472 <parameter name="gid" transfer-ownership="none">
1473 <type name="int" c:type="gint"/>
1477 <property name="gid"
1480 transfer-ownership="none">
1481 <type name="int" c:type="gint"/>
1484 <record name="UnixGroupClass"
1485 c:type="PolkitUnixGroupClass"
1486 glib:is-gtype-struct-for="UnixGroup">
1488 <class name="UnixProcess"
1489 c:type="PolkitUnixProcess"
1490 parent="GObject.Object"
1491 glib:type-name="PolkitUnixProcess"
1492 glib:get-type="polkit_unix_process_get_type"
1493 glib:type-struct="UnixProcessClass">
1494 <implements name="Subject"/>
1495 <constructor name="new" c:identifier="polkit_unix_process_new">
1496 <return-value transfer-ownership="full">
1497 <type name="UnixProcess" c:type="PolkitSubject*"/>
1500 <parameter name="pid" transfer-ownership="none">
1501 <type name="int" c:type="gint"/>
1505 <constructor name="new_full" c:identifier="polkit_unix_process_new_full">
1506 <return-value transfer-ownership="full">
1507 <type name="UnixProcess" c:type="PolkitSubject*"/>
1510 <parameter name="pid" transfer-ownership="none">
1511 <type name="int" c:type="gint"/>
1513 <parameter name="start_time" transfer-ownership="none">
1514 <type name="uint64" c:type="guint64"/>
1518 <method name="get_pid" c:identifier="polkit_unix_process_get_pid">
1519 <return-value transfer-ownership="none">
1520 <type name="int" c:type="gint"/>
1523 <method name="get_start_time"
1524 c:identifier="polkit_unix_process_get_start_time">
1525 <return-value transfer-ownership="none">
1526 <type name="uint64" c:type="guint64"/>
1529 <method name="set_pid" c:identifier="polkit_unix_process_set_pid">
1530 <return-value transfer-ownership="none">
1531 <type name="none" c:type="void"/>
1534 <parameter name="pid" transfer-ownership="none">
1535 <type name="int" c:type="gint"/>
1539 <method name="get_owner"
1540 c:identifier="polkit_unix_process_get_owner"
1542 <return-value transfer-ownership="none">
1543 <type name="int" c:type="gint"/>
1546 <property name="pid"
1549 transfer-ownership="none">
1550 <type name="int" c:type="gint"/>
1552 <property name="start-time" transfer-ownership="none">
1553 <type name="uint64" c:type="guint64"/>
1556 <record name="UnixProcessClass"
1557 c:type="PolkitUnixProcessClass"
1558 glib:is-gtype-struct-for="UnixProcess">
1560 <class name="UnixSession"
1561 c:type="PolkitUnixSession"
1562 parent="GObject.Object"
1563 glib:type-name="PolkitUnixSession"
1564 glib:get-type="polkit_unix_session_get_type"
1565 glib:type-struct="UnixSessionClass">
1566 <implements name="Gio.AsyncInitable"/>
1567 <implements name="Gio.Initable"/>
1568 <implements name="Subject"/>
1569 <constructor name="new" c:identifier="polkit_unix_session_new">
1570 <return-value transfer-ownership="full">
1571 <type name="UnixSession" c:type="PolkitSubject*"/>
1574 <parameter name="session_id" transfer-ownership="none">
1575 <type name="utf8" c:type="gchar*"/>
1579 <constructor name="new_for_process_finish"
1580 c:identifier="polkit_unix_session_new_for_process_finish"
1582 <return-value transfer-ownership="full">
1583 <type name="UnixSession" c:type="PolkitSubject*"/>
1586 <parameter name="res" transfer-ownership="none">
1587 <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
1591 <constructor name="new_for_process_sync"
1592 c:identifier="polkit_unix_session_new_for_process_sync"
1594 <return-value transfer-ownership="full">
1595 <type name="UnixSession" c:type="PolkitSubject*"/>
1598 <parameter name="pid" transfer-ownership="none">
1599 <type name="int" c:type="gint"/>
1601 <parameter name="cancellable"
1602 transfer-ownership="none"
1604 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1608 <function name="new_for_process"
1609 c:identifier="polkit_unix_session_new_for_process">
1610 <return-value transfer-ownership="none">
1611 <type name="none" c:type="void"/>
1614 <parameter name="pid" transfer-ownership="none">
1615 <type name="int" c:type="gint"/>
1617 <parameter name="cancellable"
1618 transfer-ownership="none"
1620 <type name="Gio.Cancellable" c:type="GCancellable*"/>
1622 <parameter name="callback"
1623 transfer-ownership="none"
1626 <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
1628 <parameter name="user_data" transfer-ownership="none">
1629 <type name="any" c:type="gpointer"/>
1633 <method name="get_session_id"
1634 c:identifier="polkit_unix_session_get_session_id">
1635 <return-value transfer-ownership="none">
1636 <type name="utf8" c:type="gchar*"/>
1639 <method name="set_session_id"
1640 c:identifier="polkit_unix_session_set_session_id">
1641 <return-value transfer-ownership="none">
1642 <type name="none" c:type="void"/>
1645 <parameter name="session_id" transfer-ownership="none">
1646 <type name="utf8" c:type="gchar*"/>
1650 <property name="pid"
1654 transfer-ownership="none">
1655 <type name="int" c:type="gint"/>
1657 <property name="session-id"
1660 transfer-ownership="none">
1661 <type name="utf8" c:type="gchararray"/>
1664 <record name="UnixSessionClass"
1665 c:type="PolkitUnixSessionClass"
1666 glib:is-gtype-struct-for="UnixSession">
1668 <class name="UnixUser"
1669 c:type="PolkitUnixUser"
1670 parent="GObject.Object"
1671 glib:type-name="PolkitUnixUser"
1672 glib:get-type="polkit_unix_user_get_type"
1673 glib:type-struct="UnixUserClass">
1674 <implements name="Identity"/>
1675 <constructor name="new" c:identifier="polkit_unix_user_new">
1676 <return-value transfer-ownership="full">
1677 <type name="UnixUser" c:type="PolkitIdentity*"/>
1680 <parameter name="uid" transfer-ownership="none">
1681 <type name="int" c:type="gint"/>
1685 <constructor name="new_for_name"
1686 c:identifier="polkit_unix_user_new_for_name"
1688 <return-value transfer-ownership="full">
1689 <type name="UnixUser" c:type="PolkitIdentity*"/>
1692 <parameter name="name" transfer-ownership="none">
1693 <type name="utf8" c:type="gchar*"/>
1697 <method name="get_uid" c:identifier="polkit_unix_user_get_uid">
1698 <return-value transfer-ownership="none">
1699 <type name="int" c:type="gint"/>
1702 <method name="set_uid" c:identifier="polkit_unix_user_set_uid">
1703 <return-value transfer-ownership="none">
1704 <type name="none" c:type="void"/>
1707 <parameter name="uid" transfer-ownership="none">
1708 <type name="int" c:type="gint"/>
1712 <property name="uid"
1715 transfer-ownership="none">
1716 <type name="int" c:type="gint"/>
1719 <record name="UnixUserClass"
1720 c:type="PolkitUnixUserClass"
1721 glib:is-gtype-struct-for="UnixUser">
1723 <function name="identity_from_string"
1724 c:identifier="polkit_identity_from_string"
1726 <return-value transfer-ownership="full">
1727 <type name="Identity" c:type="PolkitIdentity*"/>
1730 <parameter name="str" transfer-ownership="none">
1731 <type name="utf8" c:type="gchar*"/>
1735 <function name="implicit_authorization_from_string"
1736 c:identifier="polkit_implicit_authorization_from_string">
1737 <return-value transfer-ownership="none">
1738 <type name="boolean" c:type="gboolean"/>
1741 <parameter name="string" transfer-ownership="none">
1742 <type name="utf8" c:type="gchar*"/>
1744 <parameter name="out_implicit_authorization" transfer-ownership="none">
1745 <type name="ImplicitAuthorization"
1746 c:type="PolkitImplicitAuthorization*"/>
1750 <function name="implicit_authorization_to_string"
1751 c:identifier="polkit_implicit_authorization_to_string">
1752 <return-value transfer-ownership="none">
1753 <type name="utf8" c:type="gchar*"/>
1756 <parameter name="implicit_authorization" transfer-ownership="none">
1757 <type name="ImplicitAuthorization"
1758 c:type="PolkitImplicitAuthorization"/>
1762 <function name="subject_from_string"
1763 c:identifier="polkit_subject_from_string"
1765 <return-value transfer-ownership="full">
1766 <type name="Subject" c:type="PolkitSubject*"/>
1769 <parameter name="str" transfer-ownership="none">
1770 <type name="utf8" c:type="gchar*"/>