1 /* polkit-agent-1.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "PolkitAgent", gir_namespace = "PolkitAgent", gir_version = "1.0", lower_case_cprefix = "polkit_agent_")]
4 namespace PolkitAgent {
5 [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_listener_get_type ()")]
6 public abstract class Listener : GLib.Object {
7 [CCode (has_construct_function = false)]
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 = null) throws GLib.Error;
10 public void* register (PolkitAgent.RegisterFlags flags, Polkit.Subject subject, string object_path, GLib.Cancellable? cancellable = null) throws GLib.Error;
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;
12 public static void unregister (void* registration_handle);
14 [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_session_get_type ()")]
15 public class Session : GLib.Object {
16 [CCode (has_construct_function = false)]
17 public Session (Polkit.Identity identity, string cookie);
18 public void cancel ();
19 public void initiate ();
20 public void response (string response);
22 public string cookie { owned get; construct; }
24 public Polkit.Identity identity { owned get; construct; }
25 public signal void completed (bool gained_authorization);
26 public signal void request (string request, bool echo_on);
27 public signal void show_error (string text);
28 public signal void show_info (string text);
30 [CCode (cheader_filename = "polkitagent/polkitagent.h", type_id = "polkit_agent_text_listener_get_type ()")]
31 public class TextListener : PolkitAgent.Listener, GLib.Initable {
32 [CCode (has_construct_function = false, type = "PolkitAgentListener*")]
33 public TextListener (GLib.Cancellable? cancellable = null) throws GLib.Error;
35 [CCode (cheader_filename = "polkitagent/polkitagent.h", cprefix = "POLKIT_AGENT_REGISTER_FLAGS_", type_id = "polkit_agent_register_flags_get_type ()")]
37 public enum RegisterFlags {
41 [CCode (cheader_filename = "polkitagent/polkitagent.h")]
42 public static bool register_listener (PolkitAgent.Listener listener, Polkit.Subject subject, string object_path) throws GLib.Error;