| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>OobsSelfConfig</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> |
| 7 |
<link rel="home" href="index.html" title="Liboobs (System configuration management) Reference Manual"> |
| 8 |
<link rel="up" href="ch02.html" title="Users and groups management"> |
| 9 |
<link rel="prev" href="OobsUsersConfig.html" title="OobsUsersConfig"> |
| 10 |
<link rel="next" href="OobsGroup.html" title="OobsGroup"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.15 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"> |
| 16 |
<tr valign="middle"> |
| 17 |
<td><a accesskey="p" href="OobsUsersConfig.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> |
| 18 |
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
| 19 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
| 20 |
<th width="100%" align="center">Liboobs (System configuration management) Reference Manual</th> |
| 21 |
<td><a accesskey="n" href="OobsGroup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
| 22 |
</tr> |
| 23 |
<tr><td colspan="5" class="shortcuts"> |
| 24 |
<a href="#OobsSelfConfig.synopsis" class="shortcut">Top</a> |
| 25 |
| |
| 26 |
<a href="#OobsSelfConfig.description" class="shortcut">Description</a> |
| 27 |
| |
| 28 |
<a href="#OobsSelfConfig.object-hierarchy" class="shortcut">Object Hierarchy</a> |
| 29 |
</td></tr> |
| 30 |
</table> |
| 31 |
<div class="refentry" title="OobsSelfConfig"> |
| 32 |
<a name="OobsSelfConfig"></a><div class="titlepage"></div> |
| 33 |
<div class="refnamediv"><table width="100%"><tr> |
| 34 |
<td valign="top"> |
| 35 |
<h2><span class="refentrytitle"><a name="OobsSelfConfig.top_of_page"></a>OobsSelfConfig</span></h2> |
| 36 |
<p>OobsSelfConfig — Object that represents the current user</p> |
| 37 |
</td> |
| 38 |
<td valign="top" align="right"></td> |
| 39 |
</tr></table></div> |
| 40 |
<div class="refsynopsisdiv" title="Synopsis"> |
| 41 |
<a name="OobsSelfConfig.synopsis"></a><h2>Synopsis</h2> |
| 42 |
<pre class="synopsis"> <a class="link" href="OobsSelfConfig.html#OobsSelfConfig-struct" title="OobsSelfConfig">OobsSelfConfig</a>; |
| 43 |
<a class="link" href="OobsSelfConfig.html#OobsSelfConfigClass" title="OobsSelfConfigClass">OobsSelfConfigClass</a>; |
| 44 |
<a class="link" href="OobsObject.html" title="OobsObject"><span class="returnvalue">OobsObject</span></a>* <a class="link" href="OobsSelfConfig.html#oobs-self-config-get" title="oobs_self_config_get ()">oobs_self_config_get</a> (<em class="parameter"><code><span class="type">void</span></code></em>); |
| 45 |
<a class="link" href="OobsUser.html" title="OobsUser"><span class="returnvalue">OobsUser</span></a>* <a class="link" href="OobsSelfConfig.html#oobs-self-config-get-user" title="oobs_self_config_get_user ()">oobs_self_config_get_user</a> (<em class="parameter"><code><a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> *config</code></em>); |
| 46 |
<span class="returnvalue">gboolean</span> <a class="link" href="OobsSelfConfig.html#oobs-self-config-is-user-self" title="oobs_self_config_is_user_self ()">oobs_self_config_is_user_self</a> (<em class="parameter"><code><a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> *config</code></em>, |
| 47 |
<em class="parameter"><code><a class="link" href="OobsUser.html" title="OobsUser"><span class="type">OobsUser</span></a> *user</code></em>); |
| 48 |
</pre> |
| 49 |
</div> |
| 50 |
<div class="refsect1" title="Object Hierarchy"> |
| 51 |
<a name="OobsSelfConfig.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 52 |
<pre class="synopsis"> |
| 53 |
GObject |
| 54 |
+----<a class="link" href="OobsObject.html" title="OobsObject">OobsObject</a> |
| 55 |
+----OobsSelfConfig |
| 56 |
</pre> |
| 57 |
</div> |
| 58 |
<div class="refsect1" title="Description"> |
| 59 |
<a name="OobsSelfConfig.description"></a><h2>Description</h2> |
| 60 |
</div> |
| 61 |
<div class="refsect1" title="Details"> |
| 62 |
<a name="OobsSelfConfig.details"></a><h2>Details</h2> |
| 63 |
<div class="refsect2" title="OobsSelfConfig"> |
| 64 |
<a name="OobsSelfConfig-struct"></a><h3>OobsSelfConfig</h3> |
| 65 |
<pre class="programlisting">typedef struct _OobsSelfConfig OobsSelfConfig;</pre> |
| 66 |
<p> |
| 67 |
</p> |
| 68 |
</div> |
| 69 |
<hr> |
| 70 |
<div class="refsect2" title="OobsSelfConfigClass"> |
| 71 |
<a name="OobsSelfConfigClass"></a><h3>OobsSelfConfigClass</h3> |
| 72 |
<pre class="programlisting">typedef struct { |
| 73 |
OobsObjectClass parent_class; |
| 74 |
|
| 75 |
void (*_oobs_padding1) (void); |
| 76 |
void (*_oobs_padding2) (void); |
| 77 |
void (*_oobs_padding3) (void); |
| 78 |
void (*_oobs_padding4) (void); |
| 79 |
} OobsSelfConfigClass; |
| 80 |
</pre> |
| 81 |
<p> |
| 82 |
</p> |
| 83 |
</div> |
| 84 |
<hr> |
| 85 |
<div class="refsect2" title="oobs_self_config_get ()"> |
| 86 |
<a name="oobs-self-config-get"></a><h3>oobs_self_config_get ()</h3> |
| 87 |
<pre class="programlisting"><a class="link" href="OobsObject.html" title="OobsObject"><span class="returnvalue">OobsObject</span></a>* oobs_self_config_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 88 |
<p> |
| 89 |
Returns the <a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> singleton, which represents |
| 90 |
the user configuration for the requester uid. |
| 91 |
</p> |
| 92 |
<div class="variablelist"><table border="0"> |
| 93 |
<col align="left" valign="top"> |
| 94 |
<tbody><tr> |
| 95 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 96 |
<td> the singleton <a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> object. |
| 97 |
</td> |
| 98 |
</tr></tbody> |
| 99 |
</table></div> |
| 100 |
</div> |
| 101 |
<hr> |
| 102 |
<div class="refsect2" title="oobs_self_config_get_user ()"> |
| 103 |
<a name="oobs-self-config-get-user"></a><h3>oobs_self_config_get_user ()</h3> |
| 104 |
<pre class="programlisting"><a class="link" href="OobsUser.html" title="OobsUser"><span class="returnvalue">OobsUser</span></a>* oobs_self_config_get_user (<em class="parameter"><code><a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> *config</code></em>);</pre> |
| 105 |
<p> |
| 106 |
Returns the <a class="link" href="OobsUser.html" title="OobsUser"><span class="type">OobsUser</span></a> that represents the requester user. |
| 107 |
</p> |
| 108 |
<div class="variablelist"><table border="0"> |
| 109 |
<col align="left" valign="top"> |
| 110 |
<tbody> |
| 111 |
<tr> |
| 112 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 113 |
<td>An <a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a>. |
| 114 |
</td> |
| 115 |
</tr> |
| 116 |
<tr> |
| 117 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 118 |
<td> An <a class="link" href="OobsUser.html" title="OobsUser"><span class="type">OobsUser</span></a>, you must not reference this object. |
| 119 |
</td> |
| 120 |
</tr> |
| 121 |
</tbody> |
| 122 |
</table></div> |
| 123 |
</div> |
| 124 |
<hr> |
| 125 |
<div class="refsect2" title="oobs_self_config_is_user_self ()"> |
| 126 |
<a name="oobs-self-config-is-user-self"></a><h3>oobs_self_config_is_user_self ()</h3> |
| 127 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> oobs_self_config_is_user_self (<em class="parameter"><code><a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a> *config</code></em>, |
| 128 |
<em class="parameter"><code><a class="link" href="OobsUser.html" title="OobsUser"><span class="type">OobsUser</span></a> *user</code></em>);</pre> |
| 129 |
<p> |
| 130 |
Check whether <em class="parameter"><code>user</code></em> is the user represented by <a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a>. |
| 131 |
</p> |
| 132 |
<div class="variablelist"><table border="0"> |
| 133 |
<col align="left" valign="top"> |
| 134 |
<tbody> |
| 135 |
<tr> |
| 136 |
<td><p><span class="term"><em class="parameter"><code>config</code></em> :</span></p></td> |
| 137 |
<td>An <a class="link" href="OobsSelfConfig.html" title="OobsSelfConfig"><span class="type">OobsSelfConfig</span></a>. |
| 138 |
</td> |
| 139 |
</tr> |
| 140 |
<tr> |
| 141 |
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td> |
| 142 |
<td>An <a class="link" href="OobsUser.html" title="OobsUser"><span class="type">OobsUser</span></a>. |
| 143 |
</td> |
| 144 |
</tr> |
| 145 |
<tr> |
| 146 |
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
| 147 |
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>user</code></em> is self, <code class="literal">FALSE</code> otherwise. |
| 148 |
</td> |
| 149 |
</tr> |
| 150 |
</tbody> |
| 151 |
</table></div> |
| 152 |
</div> |
| 153 |
</div> |
| 154 |
</div> |
| 155 |
<div class="footer"> |
| 156 |
<hr> |
| 157 |
Generated by GTK-Doc V1.15</div> |
| 158 |
</body> |
| 159 |
</html> |