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>Policy File Entry</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-Policy-Definition-Files.html" title="Policy Definition Files">
<link rel="next" href="polkit-Defaults.html" title="Defaults">
<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-Policy-Definition-Files.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-Defaults.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-Policy-File-Entry.synopsis" class="shortcut">Top</a>
|
<a href="#polkit-Policy-File-Entry.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="Policy File Entry">
<a name="polkit-Policy-File-Entry"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="polkit-Policy-File-Entry.top_of_page"></a>Policy File Entry</span></h2>
<p>Policy File Entry — Represents a declared action in a policy file.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="polkit-Policy-File-Entry.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis"> <a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry">PolKitPolicyFileEntry</a>;
<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-Policy-File-Entry.html#PolKitPolicyFileEntryAnnotationsForeachFunc" title="PolKitPolicyFileEntryAnnotationsForeachFunc ()">*PolKitPolicyFileEntryAnnotationsForeachFunc</a>)
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
<a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="returnvalue">PolKitPolicyFileEntry</span></a> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-ref" title="polkit_policy_file_entry_ref ()">polkit_policy_file_entry_ref</a> (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-unref" title="polkit_policy_file_entry_unref ()">polkit_policy_file_entry_unref</a> (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
<span class="returnvalue">void</span> <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-debug" title="polkit_policy_file_entry_debug ()">polkit_policy_file_entry_debug</a> (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-id" title="polkit_policy_file_entry_get_id ()">polkit_policy_file_entry_get_id</a> (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
<a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="returnvalue">PolKitPolicyDefault</span></a> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-default" title="polkit_policy_file_entry_get_default ()">polkit_policy_file_entry_get_default</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-description" title="polkit_policy_file_entry_get_action_description ()">polkit_policy_file_entry_get_action_description</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-message" title="polkit_policy_file_entry_get_action_message ()">polkit_policy_file_entry_get_action_message</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-vendor" title="polkit_policy_file_entry_get_action_vendor ()">polkit_policy_file_entry_get_action_vendor</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-vendor-url" title="polkit_policy_file_entry_get_action_vendor_url ()">polkit_policy_file_entry_get_action_vendor_url</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-icon-name" title="polkit_policy_file_entry_get_action_icon_name ()">polkit_policy_file_entry_get_action_icon_name</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</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-Policy-File-Entry.html#polkit-policy-file-entry-annotations-foreach" title="polkit_policy_file_entry_annotations_foreach ()">polkit_policy_file_entry_annotations_foreach</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntryAnnotationsForeachFunc" title="PolKitPolicyFileEntryAnnotationsForeachFunc ()"><span class="type">PolKitPolicyFileEntryAnnotationsForeachFunc</span></a> cb</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
const <span class="returnvalue">char</span> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-annotation" title="polkit_policy_file_entry_get_annotation ()">polkit_policy_file_entry_get_annotation</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>);
<a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="returnvalue">PolKitPolicyDefault</span></a> * <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-default-factory" title="polkit_policy_file_entry_get_default_factory ()">polkit_policy_file_entry_get_default_factory</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</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-Policy-File-Entry.html#polkit-policy-file-entry-set-default" title="polkit_policy_file_entry_set_default ()">polkit_policy_file_entry_set_default</a>
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="type">PolKitPolicyDefault</span></a> *defaults</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Error-reporting.html#PolKitError" title="PolKitError"><span class="type">PolKitError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="polkit-Policy-File-Entry.description"></a><h2>Description</h2>
<p>
This class is used to represent a entries in policy files.
</p>
</div>
<div class="refsect1" title="Details">
<a name="polkit-Policy-File-Entry.details"></a><h2>Details</h2>
<div class="refsect2" title="PolKitPolicyFileEntry">
<a name="PolKitPolicyFileEntry"></a><h3>PolKitPolicyFileEntry</h3>
<pre class="programlisting">typedef struct _PolKitPolicyFileEntry PolKitPolicyFileEntry;</pre>
<p>
Objects of this class are used to record information about a
policy.
</p>
</div>
<hr>
<div class="refsect2" title="PolKitPolicyFileEntryAnnotationsForeachFunc ()">
<a name="PolKitPolicyFileEntryAnnotationsForeachFunc"></a><h3>PolKitPolicyFileEntryAnnotationsForeachFunc ()</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> (*PolKitPolicyFileEntryAnnotationsForeachFunc)
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *value</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
<p>
Callback function for <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-annotations-foreach" title="polkit_policy_file_entry_annotations_foreach ()"><code class="function">polkit_policy_file_entry_annotations_foreach()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the policy file entry
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>key of the annotation
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>corrosponding value of the annotation
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data passed to <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-annotations-foreach" title="polkit_policy_file_entry_annotations_foreach ()"><code class="function">polkit_policy_file_entry_annotations_foreach()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> Pass <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> to short-circuit, e.g. stop the iteration
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_ref ()">
<a name="polkit-policy-file-entry-ref"></a><h3>polkit_policy_file_entry_ref ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="returnvalue">PolKitPolicyFileEntry</span></a> * polkit_policy_file_entry_ref (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</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>policy_file_entry</code></em> :</span></p></td>
<td>the policy file 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_policy_file_entry_unref ()">
<a name="polkit-policy-file-entry-unref"></a><h3>polkit_policy_file_entry_unref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> polkit_policy_file_entry_unref (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</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>policy_file_entry</code></em> :</span></p></td>
<td>the policy file object
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_debug ()">
<a name="polkit-policy-file-entry-debug"></a><h3>polkit_policy_file_entry_debug ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> polkit_policy_file_entry_debug (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Print debug information about object
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the entry
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_id ()">
<a name="polkit-policy-file-entry-get-id"></a><h3>polkit_policy_file_entry_get_id ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_id (<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the action identifier.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the file entry
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A string - caller shall not free this string.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_default ()">
<a name="polkit-policy-file-entry-get-default"></a><h3>polkit_policy_file_entry_get_default ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="returnvalue">PolKitPolicyDefault</span></a> * polkit_policy_file_entry_get_default
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the the default policy for this policy.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the file entry
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="type">PolKitPolicyDefault</span></a> object - caller shall not unref or modify this object.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_action_description ()">
<a name="polkit-policy-file-entry-get-action-description"></a><h3>polkit_policy_file_entry_get_action_description ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_action_description
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the description of the action that this policy entry describes. This
is intended to be used in policy editors, for example "Mount internal
volumes". Contrast with <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-message" title="polkit_policy_file_entry_get_action_message ()"><code class="function">polkit_policy_file_entry_get_action_message()</code></a>. The
textual string will be returned in the current locale.
</p>
<p>
Note, if <a class="link" href="polkit-Context.html#polkit-context-set-load-descriptions" title="polkit_context_set_load_descriptions ()"><code class="function">polkit_context_set_load_descriptions()</code></a> on the
<a class="link" href="polkit-Context.html#PolKitContext" title="PolKitContext"><span class="type">PolKitContext</span></a> object used to get this object wasn't called, this
method will return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</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> string or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if descriptions are not loaded - caller shall not free this string
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_action_message ()">
<a name="polkit-policy-file-entry-get-action-message"></a><h3>polkit_policy_file_entry_get_action_message ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_action_message
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the message describing the action that this policy entry
describes. This is to be used in dialogs, for example "System
Policy prevents mounting this volume". Contrast with
<a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-action-description" title="polkit_policy_file_entry_get_action_description ()"><code class="function">polkit_policy_file_entry_get_action_description()</code></a>. The textual string
will be returned in the current locale.
</p>
<p>
Note, if <a class="link" href="polkit-Context.html#polkit-context-set-load-descriptions" title="polkit_context_set_load_descriptions ()"><code class="function">polkit_context_set_load_descriptions()</code></a> on the
<a class="link" href="polkit-Context.html#PolKitContext" title="PolKitContext"><span class="type">PolKitContext</span></a> object used to get this object wasn't called, this
method will return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</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> string or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if descriptions are not loaded - caller shall not free this string
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_action_vendor ()">
<a name="polkit-policy-file-entry-get-action-vendor"></a><h3>polkit_policy_file_entry_get_action_vendor ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_action_vendor
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the name of the vendor of this action.
</p>
<p>
Note, if <a class="link" href="polkit-Context.html#polkit-context-set-load-descriptions" title="polkit_context_set_load_descriptions ()"><code class="function">polkit_context_set_load_descriptions()</code></a> on the
<a class="link" href="polkit-Context.html#PolKitContext" title="PolKitContext"><span class="type">PolKitContext</span></a> object used to get this object wasn't called, this
method will return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</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> string or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if descriptions are not loaded or vendor
tag isn't set - caller shall not free this string
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7</p>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_action_vendor_url ()">
<a name="polkit-policy-file-entry-get-action-vendor-url"></a><h3>polkit_policy_file_entry_get_action_vendor_url ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_action_vendor_url
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the URL of the vendor of this action.
</p>
<p>
Note, if <a class="link" href="polkit-Context.html#polkit-context-set-load-descriptions" title="polkit_context_set_load_descriptions ()"><code class="function">polkit_context_set_load_descriptions()</code></a> on the
<a class="link" href="polkit-Context.html#PolKitContext" title="PolKitContext"><span class="type">PolKitContext</span></a> object used to get this object wasn't called, this
method will return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</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> string or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if descriptions are not loaded or vendor
url isn't set - caller shall not free this string
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7</p>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_action_icon_name ()">
<a name="polkit-policy-file-entry-get-action-icon-name"></a><h3>polkit_policy_file_entry_get_action_icon_name ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_action_icon_name
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the name of the icon that represents the action. This name
conforms to the freedesktop.org icon naming specification.
</p>
<p>
Note, if <a class="link" href="polkit-Context.html#polkit-context-set-load-descriptions" title="polkit_context_set_load_descriptions ()"><code class="function">polkit_context_set_load_descriptions()</code></a> on the
<a class="link" href="polkit-Context.html#PolKitContext" title="PolKitContext"><span class="type">PolKitContext</span></a> object used to get this object wasn't called, this
method will return <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</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> string or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if descriptions are not loaded or icon
tag isn't set - caller shall not free this string
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7</p>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_annotations_foreach ()">
<a name="polkit-policy-file-entry-annotations-foreach"></a><h3>polkit_policy_file_entry_annotations_foreach ()</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_policy_file_entry_annotations_foreach
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntryAnnotationsForeachFunc" title="PolKitPolicyFileEntryAnnotationsForeachFunc ()"><span class="type">PolKitPolicyFileEntryAnnotationsForeachFunc</span></a> cb</code></em>,
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
<p>
Iterate over all annotations on the policy file entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the policy file entry
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cb</code></em> :</span></p></td>
<td>callback function
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data to pass to the callback function
</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 iteration was short-circuited
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_annotation ()">
<a name="polkit-policy-file-entry-get-annotation"></a><h3>polkit_policy_file_entry_get_annotation ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> * polkit_policy_file_entry_get_annotation
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *key</code></em>);</pre>
<p>
Look of the value of a given annotation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the policy file entry
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>the key of the annotation
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The value of the annotation or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a> if not found.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_get_default_factory ()">
<a name="polkit-policy-file-entry-get-default-factory"></a><h3>polkit_policy_file_entry_get_default_factory ()</h3>
<pre class="programlisting"><a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="returnvalue">PolKitPolicyDefault</span></a> * polkit_policy_file_entry_get_default_factory
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>);</pre>
<p>
Get the factory defaults for the entry. This may be different that
what <a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-default" title="polkit_policy_file_entry_get_default ()"><code class="function">polkit_policy_file_entry_get_default()</code></a> returns if the function
<a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-set-default" title="polkit_policy_file_entry_set_default ()"><code class="function">polkit_policy_file_entry_set_default()</code></a> have been used to change the
defaults.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the file entry
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="type">PolKitPolicyDefault</span></a> object - caller shall not unref or modify this object.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7</p>
</div>
<hr>
<div class="refsect2" title="polkit_policy_file_entry_set_default ()">
<a name="polkit-policy-file-entry-set-default"></a><h3>polkit_policy_file_entry_set_default ()</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_policy_file_entry_set_default
(<em class="parameter"><code><a class="link" href="polkit-Policy-File-Entry.html#PolKitPolicyFileEntry" title="PolKitPolicyFileEntry"><span class="type">PolKitPolicyFileEntry</span></a> *policy_file_entry</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Defaults.html#PolKitPolicyDefault" title="PolKitPolicyDefault"><span class="type">PolKitPolicyDefault</span></a> *defaults</code></em>,
<em class="parameter"><code><a class="link" href="polkit-Error-reporting.html#PolKitError" title="PolKitError"><span class="type">PolKitError</span></a> **error</code></em>);</pre>
<p>
Set new defaults for a given policy file entry; subsequent calls to
<code class="function">polkit_policy_file_get_default()</code> will return these values. Note
that the old defaults are not modified; they are still available via
<a class="link" href="polkit-Policy-File-Entry.html#polkit-policy-file-entry-get-default-factory" title="polkit_policy_file_entry_get_default_factory ()"><code class="function">polkit_policy_file_entry_get_default_factory()</code></a>.
</p>
<p>
This operation requires the
org.freedesktop.policykit.modify-defaults authorization and will
fail if the caller lacks it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>policy_file_entry</code></em> :</span></p></td>
<td>the file entry
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>defaults</code></em> :</span></p></td>
<td>the new defaults to set
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>return location for error or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><span class="type">NULL</span></a>
</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"><code class="literal">TRUE</code></a> if the given defaults was set; <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if <em class="parameter"><code>error</code></em> is set.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 0.7</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.14</div>
</body>
</html>
ACC SHELL 2018