ACC SHELL

Path : /usr/share/gtk-doc/html/polkit/
File Upload :
Current File : //usr/share/gtk-doc/html/polkit/polkit-Session.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Session</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="PolicyKit Library Reference Manual">
<link rel="up" href="ref-core.html" title="Core API Reference">
<link rel="prev" href="polkit-Seat.html" title="Seat">
<link rel="next" href="polkit-Caller.html" title="Caller">
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="polkit-Seat.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ref-core.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">PolicyKit Library Reference Manual</th>
<td><a accesskey="n" href="polkit-Caller.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#polkit-Session.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#polkit-Session.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Session">
<a name="polkit-Session"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="polkit-Session.top_of_page"></a>Session</span></h2>
<p>Session — Represents a ConsoleKit Session.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="polkit-Session.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession">PolKitSession</a>;
<a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="returnvalue">PolKitSession</span></a> *     <a class="link" href="polkit-Session.html#polkit-session-new" title="polkit_session_new ()">polkit_session_new</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="returnvalue">PolKitSession</span></a> *     <a class="link" href="polkit-Session.html#polkit-session-ref" title="polkit_session_ref ()">polkit_session_ref</a>                  (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="polkit-Session.html#polkit-session-unref" title="polkit_session_unref ()">polkit_session_unref</a>                (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-uid" title="polkit_session_set_uid ()">polkit_session_set_uid</a>              (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">uid_t</span> uid</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-seat" title="polkit_session_set_seat ()">polkit_session_set_seat</a>             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Seat.html#PolKitSeat" title="PolKitSeat"><span class="type">PolKitSeat</span></a> *seat</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-ck-objref" title="polkit_session_set_ck_objref ()">polkit_session_set_ck_objref</a>        (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *ck_objref</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-ck-is-active" title="polkit_session_set_ck_is_active ()">polkit_session_set_ck_is_active</a>     (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> is_active</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-ck-is-local" title="polkit_session_set_ck_is_local ()">polkit_session_set_ck_is_local</a>      (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> is_local</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-set-ck-remote-host" title="polkit_session_set_ck_remote_host ()">polkit_session_set_ck_remote_host</a>   (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *remote_host</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-uid" title="polkit_session_get_uid ()">polkit_session_get_uid</a>              (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">uid_t</span> *out_uid</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-seat" title="polkit_session_get_seat ()">polkit_session_get_seat</a>             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Seat.html#PolKitSeat" title="PolKitSeat"><span class="type">PolKitSeat</span></a> **out_seat</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-ck-objref" title="polkit_session_get_ck_objref ()">polkit_session_get_ck_objref</a>        (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **out_ck_objref</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-ck-is-active" title="polkit_session_get_ck_is_active ()">polkit_session_get_ck_is_active</a>     (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> *out_is_active</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-ck-is-local" title="polkit_session_get_ck_is_local ()">polkit_session_get_ck_is_local</a>      (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> *out_is_local</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-get-ck-remote-host" title="polkit_session_get_ck_remote_host ()">polkit_session_get_ck_remote_host</a>   (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **out_remote_host</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="polkit-Session.html#polkit-session-debug" title="polkit_session_debug ()">polkit_session_debug</a>                (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);
<a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       <a class="link" href="polkit-Session.html#polkit-session-validate" title="polkit_session_validate ()">polkit_session_validate</a>             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="polkit-Session.description"></a><h2>Description</h2>
<p>
This class is used to represent a session.
</p>
</div>
<div class="refsect1" title="Details">
<a name="polkit-Session.details"></a><h2>Details</h2>
<div class="refsect2" title="PolKitSession">
<a name="PolKitSession"></a><h3>PolKitSession</h3>
<pre class="programlisting">typedef struct _PolKitSession PolKitSession;</pre>
<p>
Objects of this class are used to record information about a
session.
</p>
</div>
<hr>
<div class="refsect2" title="polkit_session_new ()">
<a name="polkit-session-new"></a><h3>polkit_session_new ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="returnvalue">PolKitSession</span></a> *     polkit_session_new                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the new object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_ref ()">
<a name="polkit-session-ref"></a><h3>polkit_session_ref ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="returnvalue">PolKitSession</span></a> *     polkit_session_ref                  (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);</pre>
<p>
Increase reference count.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_unref ()">
<a name="polkit-session-unref"></a><h3>polkit_session_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                polkit_session_unref                (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);</pre>
<p>
Decreases the reference count of the object. If it becomes zero,
the object is freed. Before freeing, reference counts on embedded
objects are decresed by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_uid ()">
<a name="polkit-session-set-uid"></a><h3>polkit_session_set_uid ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_uid              (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">uid_t</span> uid</code></em>);</pre>
<p>
Set the UNIX user id of the user owning the session.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uid</code></em> :</span></p></td>
<td>UNIX user id
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_seat ()">
<a name="polkit-session-set-seat"></a><h3>polkit_session_set_seat ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_seat             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Seat.html#PolKitSeat" title="PolKitSeat"><span class="type">PolKitSeat</span></a> *seat</code></em>);</pre>
<p>
Set the seat that the session belongs to. The reference count on
the given object will be increased by one. If an existing seat
object was set already, the reference count on that one will be
decreased by one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>seat</code></em> :</span></p></td>
<td>a <a class="link" href="polkit-Seat.html#PolKitSeat" title="PolKitSeat"><span class="type">PolKitSeat</span></a> object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_ck_objref ()">
<a name="polkit-session-set-ck-objref"></a><h3>polkit_session_set_ck_objref ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_ck_objref        (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *ck_objref</code></em>);</pre>
<p>
Set the D-Bus object path to the ConsoleKit session object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ck_objref</code></em> :</span></p></td>
<td>D-Bus object path
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_ck_is_active ()">
<a name="polkit-session-set-ck-is-active"></a><h3>polkit_session_set_ck_is_active ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_ck_is_active     (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> is_active</code></em>);</pre>
<p>
Set whether ConsoleKit regard the session as active.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_active</code></em> :</span></p></td>
<td>whether ConsoleKit reports the session as active
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_ck_is_local ()">
<a name="polkit-session-set-ck-is-local"></a><h3>polkit_session_set_ck_is_local ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_ck_is_local      (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> is_local</code></em>);</pre>
<p>
Set whether ConsoleKit regard the session as local.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_local</code></em> :</span></p></td>
<td>whether ConsoleKit reports the session as local
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_set_ck_remote_host ()">
<a name="polkit-session-set-ck-remote-host"></a><h3>polkit_session_set_ck_remote_host ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_set_ck_remote_host   (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code>const <span class="type">char</span> *remote_host</code></em>);</pre>
<p>
Set the remote host/display that ConsoleKit reports the session to
occur at.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>remote_host</code></em> :</span></p></td>
<td>hostname of the host/display that ConsoleKit reports
the session to occur at
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> only if the value validated and was set
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_uid ()">
<a name="polkit-session-get-uid"></a><h3>polkit_session_get_uid ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_uid              (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">uid_t</span> *out_uid</code></em>);</pre>
<p>
Get the UNIX user id of the user owning the session.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_uid</code></em> :</span></p></td>
<td>UNIX user id
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_seat ()">
<a name="polkit-session-get-seat"></a><h3>polkit_session_get_seat ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_seat             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Seat.html#PolKitSeat" title="PolKitSeat"><span class="type">PolKitSeat</span></a> **out_seat</code></em>);</pre>
<p>
Get the seat that the session belongs to.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_seat</code></em> :</span></p></td>
<td>Returns the seat the session belongs to. Shall not
be unreffed by the caller.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_ck_objref ()">
<a name="polkit-session-get-ck-objref"></a><h3>polkit_session_get_ck_objref ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_ck_objref        (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **out_ck_objref</code></em>);</pre>
<p>
Get the D-Bus object path to the ConsoleKit session object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_ck_objref</code></em> :</span></p></td>
<td>D-Bus object path. Shall not be freed by the caller.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_ck_is_active ()">
<a name="polkit-session-get-ck-is-active"></a><h3>polkit_session_get_ck_is_active ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_ck_is_active     (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> *out_is_active</code></em>);</pre>
<p>
Get whether ConsoleKit regard the session as active.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_is_active</code></em> :</span></p></td>
<td>whether ConsoleKit reports the session as active
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_ck_is_local ()">
<a name="polkit-session-get-ck-is-local"></a><h3>polkit_session_get_ck_is_local ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_ck_is_local      (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="type">polkit_bool_t</span></a> *out_is_local</code></em>);</pre>
<p>
Set whether ConsoleKit regard the session as local.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_is_local</code></em> :</span></p></td>
<td>whether ConsoleKit reports the session as local
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_get_ck_remote_host ()">
<a name="polkit-session-get-ck-remote-host"></a><h3>polkit_session_get_ck_remote_host ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_get_ck_remote_host   (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>,
                                                         <em class="parameter"><code><span class="type">char</span> **out_remote_host</code></em>);</pre>
<p>
Get the remote host/display that ConsoleKit reports the session to
occur at.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>The session object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_remote_host</code></em> :</span></p></td>
<td>hostname of the host/display that ConsoleKit
reports the session to occur at. Shall not be freed by the caller.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> TRUE iff the value is returned
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_debug ()">
<a name="polkit-session-debug"></a><h3>polkit_session_debug ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                polkit_session_debug                (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);</pre>
<p>
Print debug details
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>the object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_session_validate ()">
<a name="polkit-session-validate"></a><h3>polkit_session_validate ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Basic-types.html#polkit-bool-t" title="polkit_bool_t"><span class="returnvalue">polkit_bool_t</span></a>       polkit_session_validate             (<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> *session</code></em>);</pre>
<p>
Validate the object
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>the object
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> iff the object is valid.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.14</div>
</body>
</html>

ACC SHELL 2018