ACC SHELL
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Caller</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-Session.html" title="Session">
<link rel="next" href="polkit-Caller-Determination.html" title="Caller Determination">
<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-Session.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-Determination.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-Caller.synopsis" class="shortcut">Top</a>
|
<a href="#polkit-Caller.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Caller">
<a name="polkit-Caller"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="polkit-Caller.top_of_page"></a>Caller</span></h2>
<p>Caller — Represents a process requesting a mechanism to do something.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="polkit-Caller.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller">PolKitCaller</a>;
<a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="returnvalue">PolKitCaller</span></a> * <a class="link" href="polkit-Caller.html#polkit-caller-new" title="polkit_caller_new ()">polkit_caller_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="returnvalue">PolKitCaller</span></a> * <a class="link" href="polkit-Caller.html#polkit-caller-ref" title="polkit_caller_ref ()">polkit_caller_ref</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>);
<span class="returnvalue">void</span> <a class="link" href="polkit-Caller.html#polkit-caller-unref" title="polkit_caller_unref ()">polkit_caller_unref</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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-Caller.html#polkit-caller-set-dbus-name" title="polkit_caller_set_dbus_name ()">polkit_caller_set_dbus_name</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *dbus_name</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-Caller.html#polkit-caller-set-uid" title="polkit_caller_set_uid ()">polkit_caller_set_uid</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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-Caller.html#polkit-caller-set-pid" title="polkit_caller_set_pid ()">polkit_caller_set_pid</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">pid_t</span> pid</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-Caller.html#polkit-caller-set-selinux-context" title="polkit_caller_set_selinux_context ()">polkit_caller_set_selinux_context</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *selinux_context</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-Caller.html#polkit-caller-set-ck-session" title="polkit_caller_set_ck_session ()">polkit_caller_set_ck_session</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<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-Caller.html#polkit-caller-get-dbus-name" title="polkit_caller_get_dbus_name ()">polkit_caller_get_dbus_name</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">char</span> **out_dbus_name</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-Caller.html#polkit-caller-get-uid" title="polkit_caller_get_uid ()">polkit_caller_get_uid</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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-Caller.html#polkit-caller-get-pid" title="polkit_caller_get_pid ()">polkit_caller_get_pid</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">pid_t</span> *out_pid</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-Caller.html#polkit-caller-get-selinux-context" title="polkit_caller_get_selinux_context ()">polkit_caller_get_selinux_context</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">char</span> **out_selinux_context</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-Caller.html#polkit-caller-get-ck-session" title="polkit_caller_get_ck_session ()">polkit_caller_get_ck_session</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> **out_session</code></em>);
<span class="returnvalue">void</span> <a class="link" href="polkit-Caller.html#polkit-caller-debug" title="polkit_caller_debug ()">polkit_caller_debug</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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-Caller.html#polkit-caller-validate" title="polkit_caller_validate ()">polkit_caller_validate</a> (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="polkit-Caller.description"></a><h2>Description</h2>
<p>
This class is used to represent a caller in another process that is
calling into a mechanism to make the mechanism do something.
</p>
</div>
<div class="refsect1" title="Details">
<a name="polkit-Caller.details"></a><h2>Details</h2>
<div class="refsect2" title="PolKitCaller">
<a name="PolKitCaller"></a><h3>PolKitCaller</h3>
<pre class="programlisting">typedef struct _PolKitCaller PolKitCaller;</pre>
<p>
Objects of this class are used to record information about a caller
in another process.
</p>
</div>
<hr>
<div class="refsect2" title="polkit_caller_new ()">
<a name="polkit-caller-new"></a><h3>polkit_caller_new ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="returnvalue">PolKitCaller</span></a> * polkit_caller_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</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_caller_ref ()">
<a name="polkit-caller-ref"></a><h3>polkit_caller_ref ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="returnvalue">PolKitCaller</span></a> * polkit_caller_ref (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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>caller</code></em> :</span></p></td>
<td>The caller 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_caller_unref ()">
<a name="polkit-caller-unref"></a><h3>polkit_caller_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> polkit_caller_unref (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_caller_set_dbus_name ()">
<a name="polkit-caller-set-dbus-name"></a><h3>polkit_caller_set_dbus_name ()</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_caller_set_dbus_name (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *dbus_name</code></em>);</pre>
<p>
Set the callers unique system bus connection name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dbus_name</code></em> :</span></p></td>
<td>unique system bus connection name
</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_caller_set_uid ()">
<a name="polkit-caller-set-uid"></a><h3>polkit_caller_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_caller_set_uid (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">uid_t</span> uid</code></em>);</pre>
<p>
Set the callers UNIX user id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller 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_caller_set_pid ()">
<a name="polkit-caller-set-pid"></a><h3>polkit_caller_set_pid ()</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_caller_set_pid (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">pid_t</span> pid</code></em>);</pre>
<p>
Set the callers UNIX process id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pid</code></em> :</span></p></td>
<td>UNIX process 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_caller_set_selinux_context ()">
<a name="polkit-caller-set-selinux-context"></a><h3>polkit_caller_set_selinux_context ()</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_caller_set_selinux_context (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *selinux_context</code></em>);</pre>
<p>
Set the callers SELinux security context.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>selinux_context</code></em> :</span></p></td>
<td>SELinux security context
</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_caller_set_ck_session ()">
<a name="polkit-caller-set-ck-session"></a><h3>polkit_caller_set_ck_session ()</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_caller_set_ck_session (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<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>
Set the callers session. The reference count on the given object
will be increased by one. If an existing session 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>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>session</code></em> :</span></p></td>
<td>a session 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_caller_get_dbus_name ()">
<a name="polkit-caller-get-dbus-name"></a><h3>polkit_caller_get_dbus_name ()</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_caller_get_dbus_name (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">char</span> **out_dbus_name</code></em>);</pre>
<p>
Get the callers unique system bus connection name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_dbus_name</code></em> :</span></p></td>
<td>Returns the unique system bus connection name. The caller shall not free this string.
</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_caller_get_uid ()">
<a name="polkit-caller-get-uid"></a><h3>polkit_caller_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_caller_get_uid (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">uid_t</span> *out_uid</code></em>);</pre>
<p>
Get the callers UNIX user id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_uid</code></em> :</span></p></td>
<td>Returns the 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_caller_get_pid ()">
<a name="polkit-caller-get-pid"></a><h3>polkit_caller_get_pid ()</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_caller_get_pid (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">pid_t</span> *out_pid</code></em>);</pre>
<p>
Get the callers UNIX process id.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_pid</code></em> :</span></p></td>
<td>Returns the UNIX process 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_caller_get_selinux_context ()">
<a name="polkit-caller-get-selinux-context"></a><h3>polkit_caller_get_selinux_context ()</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_caller_get_selinux_context (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><span class="type">char</span> **out_selinux_context</code></em>);</pre>
<p>
Get the callers SELinux security context. Note that this may be
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if SELinux is not available on the system.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_selinux_context</code></em> :</span></p></td>
<td>Returns the SELinux security context. The caller shall not free this string.
</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_caller_get_ck_session ()">
<a name="polkit-caller-get-ck-session"></a><h3>polkit_caller_get_ck_session ()</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_caller_get_ck_session (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Session.html#PolKitSession" title="PolKitSession"><span class="type">PolKitSession</span></a> **out_session</code></em>);</pre>
<p>
Get the callers session. Note that this may be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if the caller
is not in any session.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>caller</code></em> :</span></p></td>
<td>The caller object
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_session</code></em> :</span></p></td>
<td>Returns the session object. Caller shall not unref it.
</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_caller_debug ()">
<a name="polkit-caller-debug"></a><h3>polkit_caller_debug ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> polkit_caller_debug (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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>caller</code></em> :</span></p></td>
<td>the object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_caller_validate ()">
<a name="polkit-caller-validate"></a><h3>polkit_caller_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_caller_validate (<em class="parameter"><code><a class="link" href="polkit-Caller.html#PolKitCaller" title="PolKitCaller"><span class="type">PolKitCaller</span></a> *caller</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>caller</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