<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Gio" version="2.0"/>
  <include name="Polkit" version="1.0"/>
  <package name="polkit-agent-1"/>
  <c:include name="polkitagent/polkitagent.h"/>
  <namespace name="PolkitAgent"
             version="1.0"
             shared-library="libpolkit-agent-1.so.0"
             c:identifier-prefixes="PolkitAgent"
             c:symbol-prefixes="polkit_agent">
    <function-macro name="IS_LISTENER"
                    c:identifier="POLKIT_AGENT_IS_LISTENER"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="38"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_LISTENER_CLASS"
                    c:identifier="POLKIT_AGENT_IS_LISTENER_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="39"/>
      <parameters>
        <parameter name="k">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_SESSION"
                    c:identifier="POLKIT_AGENT_IS_SESSION"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="38"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_SESSION_CLASS"
                    c:identifier="POLKIT_AGENT_IS_SESSION_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="39"/>
      <parameters>
        <parameter name="k">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="IS_TEXT_LISTENER"
                    c:identifier="POLKIT_AGENT_IS_TEXT_LISTENER"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagenttextlistener.h"
                       line="36"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="LISTENER"
                    c:identifier="POLKIT_AGENT_LISTENER"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="35"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="LISTENER_CLASS"
                    c:identifier="POLKIT_AGENT_LISTENER_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="36"/>
      <parameters>
        <parameter name="k">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="LISTENER_GET_CLASS"
                    c:identifier="POLKIT_AGENT_LISTENER_GET_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="37"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <class name="Listener"
           c:symbol-prefix="listener"
           c:type="PolkitAgentListener"
           parent="GObject.Object"
           abstract="1"
           glib:type-name="PolkitAgentListener"
           glib:get-type="polkit_agent_listener_get_type"
           glib:type-struct="ListenerClass">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagentlistener.c"
           line="26">#PolkitAgentListener is an abstract base class used for implementing authentication
agents. To implement an authentication agent, simply subclass #PolkitAgentListener and
implement the @initiate_authentication and @initiate_authentication_finish methods.

Typically authentication agents use #PolkitAgentSession to
authenticate users (via passwords) and communicate back the
authentication result to the PolicyKit daemon.

To register a #PolkitAgentListener with the PolicyKit daemon, use
polkit_agent_listener_register() or
polkit_agent_listener_register_with_options().</doc>
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="93"/>
      <function name="unregister"
                c:identifier="polkit_agent_listener_unregister">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="506">Unregisters @listener.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="145"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="registration_handle"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="508">A handle obtained from polkit_agent_listener_register().</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </function>
      <virtual-method name="initiate_authentication"
                      invoker="initiate_authentication"
                      glib:finish-func="initiate_authentication_finish">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="740">Called on a registered authentication agent (see
polkit_agent_listener_register()) when the user owning the session
needs to prove he is one of the identities listed in @identities.

When the user is done authenticating (for example by dismissing an
authentication dialog or by successfully entering a password or
otherwise proving the user is one of the identities in
@identities), @callback will be invoked. The caller then calls
polkit_agent_listener_initiate_authentication_finish() to get the
result.

#PolkitAgentListener derived subclasses imlementing this method
&lt;emphasis&gt;MUST&lt;/emphasis&gt; not ignore @cancellable; callers of this
function can and will use it. Additionally, @callback must be
invoked in the &lt;link
linkend="g-main-context-push-thread-default"&gt;thread-default main
loop&lt;/link&gt; of the thread that this method is called from.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="68"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="742">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="action_id" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="743">The action to authenticate for.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="message" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="744">The message to present to the user.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="icon_name" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="745">A themed icon name representing the action or %NULL.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="details" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="746">Details describing the action.</doc>
            <type name="Polkit.Details" c:type="PolkitDetails*"/>
          </parameter>
          <parameter name="cookie" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="747">The cookie for the authentication request.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="identities" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="748">A list of #PolkitIdentity objects that the user can choose to authenticate as.</doc>
            <type name="GLib.List" c:type="GList*">
              <type name="Polkit.Identity"/>
            </type>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="749">A #GCancellable.</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
          <parameter name="callback"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1"
                     scope="async"
                     closure="8">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="750">Function to call when the user is done authenticating.</doc>
            <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1"
                     closure="8">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="751">Data to pass to @callback.</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </virtual-method>
      <virtual-method name="initiate_authentication_finish"
                      invoker="initiate_authentication_finish"
                      throws="1">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="802">Finishes an authentication request from the PolicyKit daemon, see
polkit_agent_listener_initiate_authentication() for details.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="79"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="811">%TRUE if @error is set.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="804">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="res" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="805">A #GAsyncResult obtained from the #GAsyncReadyCallback function passed to polkit_agent_listener_initiate_authentication().</doc>
            <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
          </parameter>
        </parameters>
      </virtual-method>
      <method name="initiate_authentication"
              c:identifier="polkit_agent_listener_initiate_authentication"
              glib:finish-func="initiate_authentication_finish">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="740">Called on a registered authentication agent (see
polkit_agent_listener_register()) when the user owning the session
needs to prove he is one of the identities listed in @identities.

When the user is done authenticating (for example by dismissing an
authentication dialog or by successfully entering a password or
otherwise proving the user is one of the identities in
@identities), @callback will be invoked. The caller then calls
polkit_agent_listener_initiate_authentication_finish() to get the
result.

#PolkitAgentListener derived subclasses imlementing this method
&lt;emphasis&gt;MUST&lt;/emphasis&gt; not ignore @cancellable; callers of this
function can and will use it. Additionally, @callback must be
invoked in the &lt;link
linkend="g-main-context-push-thread-default"&gt;thread-default main
loop&lt;/link&gt; of the thread that this method is called from.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="97"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="742">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="action_id" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="743">The action to authenticate for.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="message" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="744">The message to present to the user.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="icon_name" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="745">A themed icon name representing the action or %NULL.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="details" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="746">Details describing the action.</doc>
            <type name="Polkit.Details" c:type="PolkitDetails*"/>
          </parameter>
          <parameter name="cookie" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="747">The cookie for the authentication request.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="identities" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="748">A list of #PolkitIdentity objects that the user can choose to authenticate as.</doc>
            <type name="GLib.List" c:type="GList*">
              <type name="Polkit.Identity"/>
            </type>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="749">A #GCancellable.</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
          <parameter name="callback"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1"
                     scope="async"
                     closure="8">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="750">Function to call when the user is done authenticating.</doc>
            <type name="Gio.AsyncReadyCallback" c:type="GAsyncReadyCallback"/>
          </parameter>
          <parameter name="user_data"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="751">Data to pass to @callback.</doc>
            <type name="gpointer" c:type="gpointer"/>
          </parameter>
        </parameters>
      </method>
      <method name="initiate_authentication_finish"
              c:identifier="polkit_agent_listener_initiate_authentication_finish"
              throws="1">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="802">Finishes an authentication request from the PolicyKit daemon, see
polkit_agent_listener_initiate_authentication() for details.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="108"/>
        <return-value transfer-ownership="none">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="811">%TRUE if @error is set.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="804">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="res" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="805">A #GAsyncResult obtained from the #GAsyncReadyCallback function passed to polkit_agent_listener_initiate_authentication().</doc>
            <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
          </parameter>
        </parameters>
      </method>
      <method name="register"
              c:identifier="polkit_agent_listener_register"
              throws="1">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="465">Registers @listener with the PolicyKit daemon as an authentication
agent for @subject. This is implemented by registering a D-Bus
object at @object_path on the unique name assigned by the system
message bus.

Whenever the PolicyKit daemon needs to authenticate a processes
that is related to @subject, the methods
polkit_agent_listener_initiate_authentication() and
polkit_agent_listener_initiate_authentication_finish() will be
invoked on @listener.

Note that registration of an authentication agent can fail; for
example another authentication agent may already be registered for
@subject.

Note that the calling thread is blocked until a reply is received.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="130"/>
        <return-value transfer-ownership="full" nullable="1">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="491">%NULL if @error is set, otherwise a
registration handle that can be used with
polkit_agent_listener_unregister().</doc>
          <type name="gpointer" c:type="gpointer"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="467">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="flags" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="468">A set of flags from the #PolkitAgentRegisterFlags enumeration.</doc>
            <type name="RegisterFlags" c:type="PolkitAgentRegisterFlags"/>
          </parameter>
          <parameter name="subject" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="469">The subject to become an authentication agent for, typically a #PolkitUnixSession object.</doc>
            <type name="Polkit.Subject" c:type="PolkitSubject*"/>
          </parameter>
          <parameter name="object_path" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="470">The D-Bus object path to use for the authentication agent or %NULL for the default object path.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="471">A #GCancellable or %NULL.</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
        </parameters>
      </method>
      <method name="register_with_options"
              c:identifier="polkit_agent_listener_register_with_options"
              throws="1">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.c"
             line="364">Like polkit_agent_listener_register() but takes options to influence registration. See the
&lt;link linkend="eggdbus-method-org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgentWithOptions"&gt;RegisterAuthenticationAgentWithOptions()&lt;/link&gt; D-Bus method for details.</doc>
        <source-position filename="src/polkitagent/polkitagentlistener.h"
                         line="137"/>
        <return-value transfer-ownership="full" nullable="1">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="377">%NULL if @error is set, otherwise a
registration handle that can be used with
polkit_agent_listener_unregister().</doc>
          <type name="gpointer" c:type="gpointer"/>
        </return-value>
        <parameters>
          <instance-parameter name="listener" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="366">A #PolkitAgentListener.</doc>
            <type name="Listener" c:type="PolkitAgentListener*"/>
          </instance-parameter>
          <parameter name="flags" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="367">A set of flags from the #PolkitAgentRegisterFlags enumeration.</doc>
            <type name="RegisterFlags" c:type="PolkitAgentRegisterFlags"/>
          </parameter>
          <parameter name="subject" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="368">The subject to become an authentication agent for, typically a #PolkitUnixSession object.</doc>
            <type name="Polkit.Subject" c:type="PolkitSubject*"/>
          </parameter>
          <parameter name="object_path" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="369">The D-Bus object path to use for the authentication agent or %NULL for the default object path.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
          <parameter name="options"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="370">A #GVariant with options or %NULL.</doc>
            <type name="GLib.Variant" c:type="GVariant*"/>
          </parameter>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="371">A #GCancellable or %NULL.</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
        </parameters>
      </method>
      <field name="parent_instance">
        <type name="GObject.Object" c:type="GObject"/>
      </field>
    </class>
    <record name="ListenerClass"
            c:type="PolkitAgentListenerClass"
            glib:is-gtype-struct-for="Listener">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagentlistener.h"
           line="54">VFuncs that authentication agents needs to implement.</doc>
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="93"/>
      <field name="parent_class">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.h"
             line="56">The parent class.</doc>
        <type name="GObject.ObjectClass" c:type="GObjectClass"/>
      </field>
      <field name="initiate_authentication">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.h"
             line="57">Handle an authentication request, see polkit_agent_listener_initiate_authentication().</doc>
        <callback name="initiate_authentication">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="68"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
          <parameters>
            <parameter name="listener" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="742">A #PolkitAgentListener.</doc>
              <type name="Listener" c:type="PolkitAgentListener*"/>
            </parameter>
            <parameter name="action_id" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="743">The action to authenticate for.</doc>
              <type name="utf8" c:type="const gchar*"/>
            </parameter>
            <parameter name="message" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="744">The message to present to the user.</doc>
              <type name="utf8" c:type="const gchar*"/>
            </parameter>
            <parameter name="icon_name" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="745">A themed icon name representing the action or %NULL.</doc>
              <type name="utf8" c:type="const gchar*"/>
            </parameter>
            <parameter name="details" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="746">Details describing the action.</doc>
              <type name="Polkit.Details" c:type="PolkitDetails*"/>
            </parameter>
            <parameter name="cookie" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="747">The cookie for the authentication request.</doc>
              <type name="utf8" c:type="const gchar*"/>
            </parameter>
            <parameter name="identities" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="748">A list of #PolkitIdentity objects that the user can choose to authenticate as.</doc>
              <type name="GLib.List" c:type="GList*">
                <type name="Polkit.Identity"/>
              </type>
            </parameter>
            <parameter name="cancellable"
                       transfer-ownership="none"
                       nullable="1"
                       allow-none="1">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="749">A #GCancellable.</doc>
              <type name="Gio.Cancellable" c:type="GCancellable*"/>
            </parameter>
            <parameter name="callback"
                       transfer-ownership="none"
                       nullable="1"
                       allow-none="1"
                       scope="async"
                       closure="9">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="750">Function to call when the user is done authenticating.</doc>
              <type name="Gio.AsyncReadyCallback"
                    c:type="GAsyncReadyCallback"/>
            </parameter>
            <parameter name="user_data"
                       transfer-ownership="none"
                       nullable="1"
                       allow-none="1"
                       closure="9">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="751">Data to pass to @callback.</doc>
              <type name="gpointer" c:type="gpointer"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="initiate_authentication_finish">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.h"
             line="58">Finishes handling an authentication request, see polkit_agent_listener_initiate_authentication_finish().</doc>
        <callback name="initiate_authentication_finish" throws="1">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="79"/>
          <return-value transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentlistener.c"
                 line="811">%TRUE if @error is set.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </return-value>
          <parameters>
            <parameter name="listener" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="804">A #PolkitAgentListener.</doc>
              <type name="Listener" c:type="PolkitAgentListener*"/>
            </parameter>
            <parameter name="res" transfer-ownership="none">
              <doc xml:space="preserve"
                   filename="src/polkitagent/polkitagentlistener.c"
                   line="805">A #GAsyncResult obtained from the #GAsyncReadyCallback function passed to polkit_agent_listener_initiate_authentication().</doc>
              <type name="Gio.AsyncResult" c:type="GAsyncResult*"/>
            </parameter>
          </parameters>
        </callback>
      </field>
      <field name="_polkit_reserved0" introspectable="0">
        <callback name="_polkit_reserved0">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="85"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved1" introspectable="0">
        <callback name="_polkit_reserved1">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="86"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved2" introspectable="0">
        <callback name="_polkit_reserved2">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="87"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved3" introspectable="0">
        <callback name="_polkit_reserved3">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="88"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved4" introspectable="0">
        <callback name="_polkit_reserved4">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="89"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved5" introspectable="0">
        <callback name="_polkit_reserved5">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="90"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved6" introspectable="0">
        <callback name="_polkit_reserved6">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="91"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
      <field name="_polkit_reserved7" introspectable="0">
        <callback name="_polkit_reserved7">
          <source-position filename="src/polkitagent/polkitagentlistener.h"
                           line="92"/>
          <return-value transfer-ownership="none">
            <type name="none" c:type="void"/>
          </return-value>
        </callback>
      </field>
    </record>
    <bitfield name="RegisterFlags"
              glib:type-name="PolkitAgentRegisterFlags"
              glib:get-type="polkit_agent_register_flags_get_type"
              c:type="PolkitAgentRegisterFlags">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagentlistener.h"
           line="117">Flags used in polkit_agent_listener_register().</doc>
      <member name="none"
              value="0"
              c:identifier="POLKIT_AGENT_REGISTER_FLAGS_NONE"
              glib:nick="none"
              glib:name="POLKIT_AGENT_REGISTER_FLAGS_NONE">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.h"
             line="119">No flags are set.</doc>
      </member>
      <member name="run_in_thread"
              value="1"
              c:identifier="POLKIT_AGENT_REGISTER_FLAGS_RUN_IN_THREAD"
              glib:nick="run-in-thread"
              glib:name="POLKIT_AGENT_REGISTER_FLAGS_RUN_IN_THREAD">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentlistener.h"
             line="120">Run the listener in a dedicated thread.</doc>
      </member>
    </bitfield>
    <function-macro name="SESSION"
                    c:identifier="POLKIT_AGENT_SESSION"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="35"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="SESSION_CLASS"
                    c:identifier="POLKIT_AGENT_SESSION_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="36"/>
      <parameters>
        <parameter name="k">
        </parameter>
      </parameters>
    </function-macro>
    <function-macro name="SESSION_GET_CLASS"
                    c:identifier="POLKIT_AGENT_SESSION_GET_CLASS"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="37"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <class name="Session"
           c:symbol-prefix="session"
           c:type="PolkitAgentSession"
           parent="GObject.Object"
           glib:type-name="PolkitAgentSession"
           glib:get-type="polkit_agent_session_get_type"
           glib:type-struct="SessionClass">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagentsession.c"
           line="22">The #PolkitAgentSession class is an abstraction used for interacting with the
native authentication system (for example PAM) for obtaining authorizations.
This class is typically used together with instances that are derived from
the #PolkitAgentListener abstract base class.

To perform the actual authentication, #PolkitAgentSession uses a trusted suid helper.
The authentication conversation is done through a pipe. This is transparent; the user
only need to handle the
#PolkitAgentSession::request,
#PolkitAgentSession::show-info,
#PolkitAgentSession::show-error and
#PolkitAgentSession::completed
signals and invoke polkit_agent_session_response() in response to requests.

If the user successfully authenticates, the authentication helper will invoke
a method on the PolicyKit daemon (see polkit_authority_authentication_agent_response_sync())
with the given @cookie. Upon receiving a positive response from the PolicyKit daemon (via
the authentication helper), the #PolkitAgentSession::completed signal will be emitted
with the @gained_authorization paramter set to %TRUE.

If the user is unable to authenticate, the #PolkitAgentSession::completed signal will
be emitted with the @gained_authorization paramter set to %FALSE.</doc>
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="42"/>
      <constructor name="new" c:identifier="polkit_agent_session_new">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="330">Creates a new authentication session.

The caller should connect to the
#PolkitAgentSession::request,
#PolkitAgentSession::show-info,
#PolkitAgentSession::show-error and
#PolkitAgentSession::completed
signals and then call polkit_agent_session_initiate() to initiate the authentication session.</doc>
        <source-position filename="src/polkitagent/polkitagentsession.h"
                         line="45"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentsession.c"
               line="344">A #PolkitAgentSession. Free with g_object_unref().</doc>
          <type name="Session" c:type="PolkitAgentSession*"/>
        </return-value>
        <parameters>
          <parameter name="identity" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="332">The identity to authenticate.</doc>
            <type name="Polkit.Identity" c:type="PolkitIdentity*"/>
          </parameter>
          <parameter name="cookie" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="333">The cookie obtained from the PolicyKit daemon</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </constructor>
      <method name="cancel" c:identifier="polkit_agent_session_cancel">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="651">Cancels an authentication session. This will make @session emit the #PolkitAgentSession::completed
signal.</doc>
        <source-position filename="src/polkitagent/polkitagentsession.h"
                         line="50"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="session" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="653">A #PolkitAgentSession.</doc>
            <type name="Session" c:type="PolkitAgentSession*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="initiate" c:identifier="polkit_agent_session_initiate">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="549">Initiates the authentication session. Before calling this method,
make sure to connect to the various signals. The signals will be
emitted in the &lt;link
linkend="g-main-context-push-thread-default"&gt;thread-default main
loop&lt;/link&gt; that this method is invoked from.

Use polkit_agent_session_cancel() to cancel the session.</doc>
        <source-position filename="src/polkitagent/polkitagentsession.h"
                         line="47"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="session" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="551">A #PolkitAgentSession.</doc>
            <type name="Session" c:type="PolkitAgentSession*"/>
          </instance-parameter>
        </parameters>
      </method>
      <method name="response" c:identifier="polkit_agent_session_response">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="521">Function for providing response to requests received
via the #PolkitAgentSession::request signal.</doc>
        <source-position filename="src/polkitagent/polkitagentsession.h"
                         line="48"/>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <instance-parameter name="session" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="523">A #PolkitAgentSession.</doc>
            <type name="Session" c:type="PolkitAgentSession*"/>
          </instance-parameter>
          <parameter name="response" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="524">Response from the user, typically a password.</doc>
            <type name="utf8" c:type="const gchar*"/>
          </parameter>
        </parameters>
      </method>
      <property name="cookie"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="NULL">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="231">The cookie obtained from the PolicyKit daemon</doc>
        <type name="utf8" c:type="gchar*"/>
      </property>
      <property name="identity"
                writable="1"
                construct-only="1"
                transfer-ownership="none">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="214">The identity to authenticate.</doc>
        <type name="Polkit.Identity"/>
      </property>
      <glib:signal name="completed" when="last">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="307">Emitted when the authentication session has been completed or
cancelled. The @gained_authorization parameter is %TRUE only if
the user successfully authenticated.

Upon receiving this signal, the user should free @session using g_object_unref().</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="gained_authorization" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="310">%TRUE only if the authorization was successfully obtained.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="request" when="last">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="248">Emitted when the user is requested to answer a question.

When the response has been collected from the user, call polkit_agent_session_response().</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="request" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="251">The request to show the user, e.g. "name: " or "password: ".</doc>
            <type name="utf8" c:type="gchar*"/>
          </parameter>
          <parameter name="echo_on" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="252">%TRUE if the response to the request SHOULD be echoed on the
          screen, %FALSE if the response MUST NOT be echoed to the screen.</doc>
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="show-error" when="last">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="289">Emitted when there is information related to an error condition to be displayed to the user.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="text" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="292">An error string to display to the user.</doc>
            <type name="utf8" c:type="gchar*"/>
          </parameter>
        </parameters>
      </glib:signal>
      <glib:signal name="show-info" when="last">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagentsession.c"
             line="271">Emitted when there is information to be displayed to the user.</doc>
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="text" transfer-ownership="none">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagentsession.c"
                 line="274">A string to display to the user.</doc>
            <type name="utf8" c:type="gchar*"/>
          </parameter>
        </parameters>
      </glib:signal>
    </class>
    <record name="SessionClass"
            c:type="PolkitAgentSessionClass"
            disguised="1"
            opaque="1"
            glib:is-gtype-struct-for="Session">
      <source-position filename="src/polkitagent/polkitagentsession.h"
                       line="42"/>
    </record>
    <function-macro name="TEXT_LISTENER"
                    c:identifier="POLKIT_AGENT_TEXT_LISTENER"
                    introspectable="0">
      <source-position filename="src/polkitagent/polkitagenttextlistener.h"
                       line="35"/>
      <parameters>
        <parameter name="o">
        </parameter>
      </parameters>
    </function-macro>
    <class name="TextListener"
           c:symbol-prefix="text_listener"
           c:type="PolkitAgentTextListener"
           parent="Listener"
           glib:type-name="PolkitAgentTextListener"
           glib:get-type="polkit_agent_text_listener_get_type">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagenttextlistener.c"
           line="38">#PolkitAgentTextListener is an #PolkitAgentListener implementation
that interacts with the user using a textual interface.</doc>
      <implements name="Gio.Initable"/>
      <constructor name="new"
                   c:identifier="polkit_agent_text_listener_new"
                   throws="1">
        <doc xml:space="preserve"
             filename="src/polkitagent/polkitagenttextlistener.c"
             line="214">Creates a new #PolkitAgentTextListener for authenticating the user
via an textual interface on the controlling terminal
(e.g. &lt;filename&gt;/dev/tty&lt;/filename&gt;). This can fail if e.g. the
current process has no controlling terminal.</doc>
        <source-position filename="src/polkitagent/polkitagenttextlistener.h"
                         line="39"/>
        <return-value transfer-ownership="full">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagenttextlistener.c"
               line="224">A #PolkitAgentTextListener or %NULL if @error is set. Free with g_object_unref() when done with it.</doc>
          <type name="Listener" c:type="PolkitAgentListener*"/>
        </return-value>
        <parameters>
          <parameter name="cancellable"
                     transfer-ownership="none"
                     nullable="1"
                     allow-none="1">
            <doc xml:space="preserve"
                 filename="src/polkitagent/polkitagenttextlistener.c"
                 line="216">A #GCancellable or %NULL.</doc>
            <type name="Gio.Cancellable" c:type="GCancellable*"/>
          </parameter>
        </parameters>
      </constructor>
      <property name="delay"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="1">
        <type name="guint" c:type="guint"/>
      </property>
      <property name="use-alternate-buffer"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="FALSE">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <property name="use-color"
                writable="1"
                construct-only="1"
                transfer-ownership="none"
                default-value="TRUE">
        <type name="gboolean" c:type="gboolean"/>
      </property>
      <glib:signal name="tty-attrs-changed"
                   when="last"
                   no-recurse="1"
                   no-hooks="1">
        <return-value transfer-ownership="none">
          <type name="none" c:type="void"/>
        </return-value>
        <parameters>
          <parameter name="object" transfer-ownership="none">
            <type name="gboolean" c:type="gboolean"/>
          </parameter>
        </parameters>
      </glib:signal>
    </class>
    <function name="register_listener"
              c:identifier="polkit_agent_register_listener"
              throws="1">
      <doc xml:space="preserve"
           filename="src/polkitagent/polkitagentlistener.c"
           line="533">(deprecated)</doc>
      <source-position filename="src/polkitagent/polkitagentlistener.h"
                       line="112"/>
      <return-value transfer-ownership="none">
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="listener" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="535">A #PolkitAgentListener.</doc>
          <type name="Listener" c:type="PolkitAgentListener*"/>
        </parameter>
        <parameter name="subject" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="536">The subject to become an authentication agent for, typically a #PolkitUnixSession object.</doc>
          <type name="Polkit.Subject" c:type="PolkitSubject*"/>
        </parameter>
        <parameter name="object_path" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="src/polkitagent/polkitagentlistener.c"
               line="537">The D-Bus object path to use for the authentication agent or %NULL for the default object path.</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
