1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Tizen Login Manager Reference Manual: TlmConfig</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="Tizen Login Manager Reference Manual">
8 <link rel="up" href="ch01.html" title="Introduction">
9 <link rel="prev" href="tlm-intro.html" title="Introduction">
10 <link rel="next" href="tlm-General-configuration.html" title="General configuration">
11 <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="10"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
18 <a href="#TlmConfig.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
19 <a href="#TlmConfig.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="tlm-intro.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="tlm-General-configuration.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 <div class="refentry">
27 <a name="TlmConfig"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
30 <h2><span class="refentrytitle"><a name="TlmConfig.top_of_page"></a>TlmConfig</span></h2>
31 <p>TlmConfig — tlm configuration information</p>
33 <td class="gallery_image" valign="top" align="right"></td>
35 <div class="refsect1">
36 <a name="TlmConfig.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table width="100%" border="0">
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
44 <td class="function_type">
45 <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="returnvalue">TlmConfig</span></a> *
47 <td class="function_name">
48 <a class="link" href="TlmConfig.html#tlm-config-new" title="tlm_config_new ()">tlm_config_new</a> <span class="c_punctuation">()</span>
52 <td class="function_type">
53 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
55 <td class="function_name">
56 <a class="link" href="TlmConfig.html#tlm-config-get-int" title="tlm_config_get_int ()">tlm_config_get_int</a> <span class="c_punctuation">()</span>
60 <td class="function_type">
61 <span class="returnvalue">void</span>
63 <td class="function_name">
64 <a class="link" href="TlmConfig.html#tlm-config-set-int" title="tlm_config_set_int ()">tlm_config_set_int</a> <span class="c_punctuation">()</span>
68 <td class="function_type">
69 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
71 <td class="function_name">
72 <a class="link" href="TlmConfig.html#tlm-config-get-uint" title="tlm_config_get_uint ()">tlm_config_get_uint</a> <span class="c_punctuation">()</span>
76 <td class="function_type">
77 <span class="returnvalue">void</span>
79 <td class="function_name">
80 <a class="link" href="TlmConfig.html#tlm-config-set-uint" title="tlm_config_set_uint ()">tlm_config_set_uint</a> <span class="c_punctuation">()</span>
84 <td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
86 <td class="function_name">
87 <a class="link" href="TlmConfig.html#tlm-config-get-string" title="tlm_config_get_string ()">tlm_config_get_string</a> <span class="c_punctuation">()</span>
91 <td class="function_type">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
93 <td class="function_name">
94 <a class="link" href="TlmConfig.html#tlm-config-get-string-default" title="tlm_config_get_string_default ()">tlm_config_get_string_default</a> <span class="c_punctuation">()</span>
98 <td class="function_type">
99 <span class="returnvalue">void</span>
101 <td class="function_name">
102 <a class="link" href="TlmConfig.html#tlm-config-set-string" title="tlm_config_set_string ()">tlm_config_set_string</a> <span class="c_punctuation">()</span>
106 <td class="function_type">
107 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
109 <td class="function_name">
110 <a class="link" href="TlmConfig.html#tlm-config-get-boolean" title="tlm_config_get_boolean ()">tlm_config_get_boolean</a> <span class="c_punctuation">()</span>
114 <td class="function_type">
115 <span class="returnvalue">void</span>
117 <td class="function_name">
118 <a class="link" href="TlmConfig.html#tlm-config-set-boolean" title="tlm_config_set_boolean ()">tlm_config_set_boolean</a> <span class="c_punctuation">()</span>
122 <td class="function_type">
123 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
125 <td class="function_name">
126 <a class="link" href="TlmConfig.html#tlm-config-has-group" title="tlm_config_has_group ()">tlm_config_has_group</a> <span class="c_punctuation">()</span>
130 <td class="function_type">
131 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
133 <td class="function_name">
134 <a class="link" href="TlmConfig.html#tlm-config-has-key" title="tlm_config_has_key ()">tlm_config_has_key</a> <span class="c_punctuation">()</span>
138 <td class="function_type">
139 <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
141 <td class="function_name">
142 <a class="link" href="TlmConfig.html#tlm-config-get-group" title="tlm_config_get_group ()">tlm_config_get_group</a> <span class="c_punctuation">()</span>
146 <td class="function_type">
147 <span class="returnvalue">void</span>
149 <td class="function_name">
150 <a class="link" href="TlmConfig.html#tlm-config-reload" title="tlm_config_reload ()">tlm_config_reload</a> <span class="c_punctuation">()</span>
156 <div class="refsect1">
157 <a name="TlmConfig.object-hierarchy"></a><h2>Object Hierarchy</h2>
158 <pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
159 <span class="lineart">╰──</span> TlmConfig
162 <div class="refsect1">
163 <a name="TlmConfig.includes"></a><h2>Includes</h2>
164 <pre class="synopsis">#include <tlm-config.h>
167 <div class="refsect1">
168 <a name="TlmConfig.description"></a><h2>Description</h2>
169 <p><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> holds configuration information as a set of keys and values
170 (integer or strings). The key names are defined in</p>
171 <a class="link" href="tlm-General-configuration.html" title="General configuration">General config keys</a>.
172 <p>Note that authentication and account plugins may use plugin-specific
173 configuration keys; see plugins' documentation for specifics.</p>
174 <p>The configuration is retrieved from the tlm configuration file. See below
175 for where the file is searched for.</p>
176 <div class="refsect1">
177 <a name="id-1.2.3.6.6"></a><h2>Usage</h2>
179 <p>Following code snippet demonstrates how to create and use config object:</p>
180 <div class="informalexample"><pre class="programlisting">
182 TlmConfig* config = tlm_config_new ();
183 const gchar *str = tlm_config_get_string (config,
184 TLM_CONFIG_GENERAL, TLM_CONFIG_GENERAL_PAM_SERVICE, 0);
185 g_object_unref(config);
189 <div class="refsect1">
190 <a name="id-1.2.3.6.10"></a><h2>Where the configuration file is searched for</h2>
192 <p>If tlm has been compiled with --enable-debug, then these locations are used,
193 in decreasing order of priority:</p>
194 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
195 <li class="listitem"><p>TLM_CONF_FILE environment variable</p></li>
196 <li class="listitem"><p>g_get_user_config_dir() + "tlm.conf"</p></li>
197 <li class="listitem"><p>each of <a href="http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-get-system-config-dirs"><code class="function">g_get_system_config_dirs()</code></a> + "tlm.conf"</p></li>
199 <p>Otherwise, the config file location is determined at compilation time as
200 $(sysconfdir) + "tlm.conf"</p>
201 <div class="refsect1">
202 <a name="id-1.2.3.6.14"></a><h2>Example configuration file</h2>
204 <p>See example configuration file here:</p>
205 <a class="ulink" href="https://github.com/01org/tlm/blob/master/data/tlm.conf.in" target="_top">
206 tlm configuration file</a>
208 <div class="refsect1">
209 <a name="TlmConfig.functions_details"></a><h2>Functions</h2>
210 <div class="refsect2">
211 <a name="tlm-config-new"></a><h3>tlm_config_new ()</h3>
212 <pre class="programlisting"><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="returnvalue">TlmConfig</span></a> *
213 tlm_config_new ();</pre>
214 <p>Create a <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> object.</p>
215 <div class="refsect3">
216 <a name="id-1.2.3.7.2.5"></a><h4>Returns</h4>
217 <p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>.</p>
222 <div class="refsect2">
223 <a name="tlm-config-get-int"></a><h3>tlm_config_get_int ()</h3>
224 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
225 tlm_config_get_int (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
226 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
227 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
228 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> retval</code></em>);</pre>
229 <p>Get an integer configuration value.</p>
230 <div class="refsect3">
231 <a name="id-1.2.3.7.3.5"></a><h4>Parameters</h4>
232 <div class="informaltable"><table width="100%" border="0">
234 <col width="150px" class="parameters_name">
235 <col class="parameters_description">
236 <col width="200px" class="parameters_annotations">
240 <td class="parameter_name"><p>self</p></td>
241 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
242 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
245 <td class="parameter_name"><p>group</p></td>
246 <td class="parameter_description"><p>the group name</p></td>
247 <td class="parameter_annotations"> </td>
250 <td class="parameter_name"><p>key</p></td>
251 <td class="parameter_description"><p>the key name</p></td>
252 <td class="parameter_annotations"> </td>
255 <td class="parameter_name"><p>retval</p></td>
256 <td class="parameter_description"><p>value to be returned in case key is not found</p></td>
257 <td class="parameter_annotations"> </td>
262 <div class="refsect3">
263 <a name="id-1.2.3.7.3.6"></a><h4>Returns</h4>
264 <p> the value corresponding to the key as an integer. If the key does
265 not exist or cannot be converted to the integer, retval is returned.</p>
270 <div class="refsect2">
271 <a name="tlm-config-set-int"></a><h3>tlm_config_set_int ()</h3>
272 <pre class="programlisting"><span class="returnvalue">void</span>
273 tlm_config_set_int (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
274 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
275 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
276 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);</pre>
277 <p>Sets the configuration value to the provided integer.</p>
278 <div class="refsect3">
279 <a name="id-1.2.3.7.4.5"></a><h4>Parameters</h4>
280 <div class="informaltable"><table width="100%" border="0">
282 <col width="150px" class="parameters_name">
283 <col class="parameters_description">
284 <col width="200px" class="parameters_annotations">
288 <td class="parameter_name"><p>self</p></td>
289 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
290 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
293 <td class="parameter_name"><p>group</p></td>
294 <td class="parameter_description"><p>the group name</p></td>
295 <td class="parameter_annotations"> </td>
298 <td class="parameter_name"><p>key</p></td>
299 <td class="parameter_description"><p>the key name</p></td>
300 <td class="parameter_annotations"> </td>
303 <td class="parameter_name"><p>value</p></td>
304 <td class="parameter_description"><p>the value</p></td>
305 <td class="parameter_annotations"> </td>
312 <div class="refsect2">
313 <a name="tlm-config-get-uint"></a><h3>tlm_config_get_uint ()</h3>
314 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
315 tlm_config_get_uint (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
316 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
317 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
318 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> retval</code></em>);</pre>
319 <p>Get an unsigned integer configuration value.</p>
320 <div class="refsect3">
321 <a name="id-1.2.3.7.5.5"></a><h4>Parameters</h4>
322 <div class="informaltable"><table width="100%" border="0">
324 <col width="150px" class="parameters_name">
325 <col class="parameters_description">
326 <col width="200px" class="parameters_annotations">
330 <td class="parameter_name"><p>self</p></td>
331 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
332 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
335 <td class="parameter_name"><p>group</p></td>
336 <td class="parameter_description"><p> the group name. </p></td>
337 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
340 <td class="parameter_name"><p>key</p></td>
341 <td class="parameter_description"><p> the key name. </p></td>
342 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
345 <td class="parameter_name"><p>retval</p></td>
346 <td class="parameter_description"><p>value to be returned in case key is not found</p></td>
347 <td class="parameter_annotations"> </td>
352 <div class="refsect3">
353 <a name="id-1.2.3.7.5.6"></a><h4>Returns</h4>
354 <p> the value corresponding to the key as an unsigned integer. If the
355 key does not exist or cannot be converted to the integer, retval is returned.</p>
360 <div class="refsect2">
361 <a name="tlm-config-set-uint"></a><h3>tlm_config_set_uint ()</h3>
362 <pre class="programlisting"><span class="returnvalue">void</span>
363 tlm_config_set_uint (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
364 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
365 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
366 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> value</code></em>);</pre>
367 <p>Sets the configuration value to the provided unsigned integer.</p>
368 <div class="refsect3">
369 <a name="id-1.2.3.7.6.5"></a><h4>Parameters</h4>
370 <div class="informaltable"><table width="100%" border="0">
372 <col width="150px" class="parameters_name">
373 <col class="parameters_description">
374 <col width="200px" class="parameters_annotations">
378 <td class="parameter_name"><p>self</p></td>
379 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
380 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
383 <td class="parameter_name"><p>group</p></td>
384 <td class="parameter_description"><p> the group name. </p></td>
385 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
388 <td class="parameter_name"><p>key</p></td>
389 <td class="parameter_description"><p>the key name</p></td>
390 <td class="parameter_annotations"> </td>
393 <td class="parameter_name"><p>value</p></td>
394 <td class="parameter_description"><p>the value</p></td>
395 <td class="parameter_annotations"> </td>
402 <div class="refsect2">
403 <a name="tlm-config-get-string"></a><h3>tlm_config_get_string ()</h3>
404 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
405 tlm_config_get_string (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
406 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
407 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
408 <p>Get a string configuration value.</p>
409 <div class="refsect3">
410 <a name="id-1.2.3.7.7.5"></a><h4>Parameters</h4>
411 <div class="informaltable"><table width="100%" border="0">
413 <col width="150px" class="parameters_name">
414 <col class="parameters_description">
415 <col width="200px" class="parameters_annotations">
419 <td class="parameter_name"><p>self</p></td>
420 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
421 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
424 <td class="parameter_name"><p>group</p></td>
425 <td class="parameter_description"><p> the group name, NULL refers to General. </p></td>
426 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
429 <td class="parameter_name"><p>key</p></td>
430 <td class="parameter_description"><p> the key name. </p></td>
431 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
436 <div class="refsect3">
437 <a name="id-1.2.3.7.7.6"></a><h4>Returns</h4>
438 <p> the value corresponding to the key as an string. If the
439 key does not exist, NULL is returned.</p>
444 <div class="refsect2">
445 <a name="tlm-config-get-string-default"></a><h3>tlm_config_get_string_default ()</h3>
446 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
447 tlm_config_get_string_default (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
448 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
449 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
450 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
451 <p>Get a string configuration value.</p>
452 <div class="refsect3">
453 <a name="id-1.2.3.7.8.5"></a><h4>Parameters</h4>
454 <div class="informaltable"><table width="100%" border="0">
456 <col width="150px" class="parameters_name">
457 <col class="parameters_description">
458 <col width="200px" class="parameters_annotations">
462 <td class="parameter_name"><p>self</p></td>
463 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
464 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
467 <td class="parameter_name"><p>group</p></td>
468 <td class="parameter_description"><p> the group name, NULL refers to General. </p></td>
469 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
472 <td class="parameter_name"><p>key</p></td>
473 <td class="parameter_description"><p> the key name. </p></td>
474 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
477 <td class="parameter_name"><p>value</p></td>
478 <td class="parameter_description"><p> default value. </p></td>
479 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
484 <div class="refsect3">
485 <a name="id-1.2.3.7.8.6"></a><h4>Returns</h4>
486 <p> the value corresponding to the key as an string. If the
487 key does not exist, given default value is returned.</p>
492 <div class="refsect2">
493 <a name="tlm-config-set-string"></a><h3>tlm_config_set_string ()</h3>
494 <pre class="programlisting"><span class="returnvalue">void</span>
495 tlm_config_set_string (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
496 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
497 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
498 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
499 <p>Sets the configuration value to the provided string.</p>
500 <div class="refsect3">
501 <a name="id-1.2.3.7.9.5"></a><h4>Parameters</h4>
502 <div class="informaltable"><table width="100%" border="0">
504 <col width="150px" class="parameters_name">
505 <col class="parameters_description">
506 <col width="200px" class="parameters_annotations">
510 <td class="parameter_name"><p>self</p></td>
511 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
512 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
515 <td class="parameter_name"><p>group</p></td>
516 <td class="parameter_description"><p> the group name. </p></td>
517 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
520 <td class="parameter_name"><p>key</p></td>
521 <td class="parameter_description"><p> the key name. </p></td>
522 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
525 <td class="parameter_name"><p>value</p></td>
526 <td class="parameter_description"><p> the value. </p></td>
527 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
534 <div class="refsect2">
535 <a name="tlm-config-get-boolean"></a><h3>tlm_config_get_boolean ()</h3>
536 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
537 tlm_config_get_boolean (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
538 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
539 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
540 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> retval</code></em>);</pre>
541 <p>Get a boolean configuration value.</p>
542 <div class="refsect3">
543 <a name="id-1.2.3.7.10.5"></a><h4>Parameters</h4>
544 <div class="informaltable"><table width="100%" border="0">
546 <col width="150px" class="parameters_name">
547 <col class="parameters_description">
548 <col width="200px" class="parameters_annotations">
552 <td class="parameter_name"><p>self</p></td>
553 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
554 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
557 <td class="parameter_name"><p>group</p></td>
558 <td class="parameter_description"><p> the group name. </p></td>
559 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
562 <td class="parameter_name"><p>key</p></td>
563 <td class="parameter_description"><p> the key name. </p></td>
564 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
567 <td class="parameter_name"><p>retval</p></td>
568 <td class="parameter_description"><p>value to be returned in case key is not found</p></td>
569 <td class="parameter_annotations"> </td>
574 <div class="refsect3">
575 <a name="id-1.2.3.7.10.6"></a><h4>Returns</h4>
576 <p> the value corresponding to the key as boolean. If the
577 key does not exist or cannot be converted to boolean, retval is returned.</p>
582 <div class="refsect2">
583 <a name="tlm-config-set-boolean"></a><h3>tlm_config_set_boolean ()</h3>
584 <pre class="programlisting"><span class="returnvalue">void</span>
585 tlm_config_set_boolean (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
586 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
587 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>,
588 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> value</code></em>);</pre>
589 <p>Sets the configuration value to the provided <span class="type">value</span>.</p>
590 <div class="refsect3">
591 <a name="id-1.2.3.7.11.5"></a><h4>Parameters</h4>
592 <div class="informaltable"><table width="100%" border="0">
594 <col width="150px" class="parameters_name">
595 <col class="parameters_description">
596 <col width="200px" class="parameters_annotations">
600 <td class="parameter_name"><p>self</p></td>
601 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
602 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
605 <td class="parameter_name"><p>group</p></td>
606 <td class="parameter_description"><p>the group name</p></td>
607 <td class="parameter_annotations"> </td>
610 <td class="parameter_name"><p>key</p></td>
611 <td class="parameter_description"><p>the key name</p></td>
612 <td class="parameter_annotations"> </td>
615 <td class="parameter_name"><p>value</p></td>
616 <td class="parameter_description"><p>the value</p></td>
617 <td class="parameter_annotations"> </td>
624 <div class="refsect2">
625 <a name="tlm-config-has-group"></a><h3>tlm_config_has_group ()</h3>
626 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
627 tlm_config_has_group (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
628 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>);</pre>
629 <p>Checks if any configuration available for <span class="type">group</span>.</p>
630 <div class="refsect3">
631 <a name="id-1.2.3.7.12.5"></a><h4>Parameters</h4>
632 <div class="informaltable"><table width="100%" border="0">
634 <col width="150px" class="parameters_name">
635 <col class="parameters_description">
636 <col width="200px" class="parameters_annotations">
640 <td class="parameter_name"><p>self</p></td>
641 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
642 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
645 <td class="parameter_name"><p>group</p></td>
646 <td class="parameter_description"><p>the group name</p></td>
647 <td class="parameter_annotations"> </td>
652 <div class="refsect3">
653 <a name="id-1.2.3.7.12.6"></a><h4>Returns</h4>
654 <p> TRUE if found, FALSE otherwise.</p>
659 <div class="refsect2">
660 <a name="tlm-config-has-key"></a><h3>tlm_config_has_key ()</h3>
661 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
662 tlm_config_has_key (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
663 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>,
664 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *key</code></em>);</pre>
665 <p>Checks if <span class="type">key</span> is in given <span class="type">group</span>.</p>
666 <div class="refsect3">
667 <a name="id-1.2.3.7.13.5"></a><h4>Parameters</h4>
668 <div class="informaltable"><table width="100%" border="0">
670 <col width="150px" class="parameters_name">
671 <col class="parameters_description">
672 <col width="200px" class="parameters_annotations">
676 <td class="parameter_name"><p>self</p></td>
677 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
678 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
681 <td class="parameter_name"><p>group</p></td>
682 <td class="parameter_description"><p>the group name</p></td>
683 <td class="parameter_annotations"> </td>
686 <td class="parameter_name"><p>key</p></td>
687 <td class="parameter_description"><p>the key name</p></td>
688 <td class="parameter_annotations"> </td>
693 <div class="refsect3">
694 <a name="id-1.2.3.7.13.6"></a><h4>Returns</h4>
695 <p> TRUE, if found, FALSE otherwise.</p>
700 <div class="refsect2">
701 <a name="tlm-config-get-group"></a><h3>tlm_config_get_group ()</h3>
702 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="returnvalue">GHashTable</span></a> *
703 tlm_config_get_group (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>,
704 <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *group</code></em>);</pre>
705 <p>Retrives the configuration in given <span class="type">group</span> as <a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a></p>
706 <div class="refsect3">
707 <a name="id-1.2.3.7.14.5"></a><h4>Parameters</h4>
708 <div class="informaltable"><table width="100%" border="0">
710 <col width="150px" class="parameters_name">
711 <col class="parameters_description">
712 <col width="200px" class="parameters_annotations">
716 <td class="parameter_name"><p>self</p></td>
717 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
718 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
721 <td class="parameter_name"><p>group</p></td>
722 <td class="parameter_description"><p>the group name</p></td>
723 <td class="parameter_annotations"> </td>
728 <div class="refsect3">
729 <a name="id-1.2.3.7.14.6"></a><h4>Returns</h4>
730 <p> the key, value paired dictionary if found,
732 <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
736 <div class="refsect2">
737 <a name="tlm-config-reload"></a><h3>tlm_config_reload ()</h3>
738 <pre class="programlisting"><span class="returnvalue">void</span>
739 tlm_config_reload (<em class="parameter"><code><a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a> *self</code></em>);</pre>
740 <p>Reloads the configuration.</p>
741 <div class="refsect3">
742 <a name="id-1.2.3.7.15.5"></a><h4>Parameters</h4>
743 <div class="informaltable"><table width="100%" border="0">
745 <col width="150px" class="parameters_name">
746 <col class="parameters_description">
747 <col width="200px" class="parameters_annotations">
750 <td class="parameter_name"><p>self</p></td>
751 <td class="parameter_description"><p> an instance of <a class="link" href="TlmConfig.html" title="TlmConfig"><span class="type">TlmConfig</span></a>. </p></td>
752 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
758 <div class="refsect1">
759 <a name="TlmConfig.other_details"></a><h2>Types and Values</h2>
764 Generated by GTK-Doc V1.20</div>