1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
<head>
|
4
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
5
|
<title>keyfile: scol_glib_keyfile.c File Reference</title>
|
6
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
7
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
8
|
</head>
|
9
|
<body>
|
10
|
<!-- Generated by Doxygen 1.6.3 -->
|
11
|
<div class="navigation" id="top">
|
12
|
<div class="tabs">
|
13
|
<ul>
|
14
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
15
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
16
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
17
|
</ul>
|
18
|
</div>
|
19
|
<div class="tabs">
|
20
|
<ul>
|
21
|
<li><a href="files.html"><span>File List</span></a></li>
|
22
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
23
|
</ul>
|
24
|
</div>
|
25
|
</div>
|
26
|
<div class="contents">
|
27
|
<h1>scol_glib_keyfile.c File Reference</h1>
|
28
|
<p>all functions of this API
|
29
|
<a href="#_details">More...</a></p>
|
30
|
<code>#include "<a class="el" href="scol__glib__keyfile_8c.html">../include/scol_glib_keyfile.h</a>"</code><br/>
|
31
|
<code>#include "main.h"</code><br/>
|
32
|
<code>#include <glib/gstdio.h></code><br/>
|
33
|
<table border="0" cellpadding="0" cellspacing="0">
|
34
|
<tr><td colspan="2"><h2>Functions</h2></td></tr>
|
35
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a927bfe29e62ad7ee049af2921bf0a436"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_RAW" ref="a927bfe29e62ad7ee049af2921bf0a436" args="(mmachine m)" -->
|
36
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a927bfe29e62ad7ee049af2921bf0a436">GKF_VALUE_RAW</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
37
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_RAW : I : flag used to load a key file. The raw value associated with key under group. The value can be escaped string. <br/></td></tr>
|
38
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18a34f8ec78f176b747dbb6e974b647c"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_STRING" ref="a18a34f8ec78f176b747dbb6e974b647c" args="(mmachine m)" -->
|
39
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a18a34f8ec78f176b747dbb6e974b647c">GKF_VALUE_STRING</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
40
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_STRING : I : flag used to load a key file. The string value associated with key under group. Unlike GKF_VALUE_RAW, any escaped sequence are unescaped. <br/></td></tr>
|
41
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8ac6db37c87213ad2f29bd784c33e80"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_INTEGER" ref="af8ac6db37c87213ad2f29bd784c33e80" args="(mmachine m)" -->
|
42
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#af8ac6db37c87213ad2f29bd784c33e80">GKF_VALUE_INTEGER</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
43
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_INTEGER : Not implemented yet. <br/></td></tr>
|
44
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40b153a861a65c1ee08516413c255980"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_INTEGER64" ref="a40b153a861a65c1ee08516413c255980" args="(mmachine m)" -->
|
45
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a40b153a861a65c1ee08516413c255980">GKF_VALUE_INTEGER64</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
46
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_INTEGER64 : Not implemented yet. <br/></td></tr>
|
47
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5836e929663b9ffa03796021f3e61283"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_UINTEGER64" ref="a5836e929663b9ffa03796021f3e61283" args="(mmachine m)" -->
|
48
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a5836e929663b9ffa03796021f3e61283">GKF_VALUE_UINTEGER64</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
49
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_UINTEGER64 : Not implemented yet. <br/></td></tr>
|
50
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a014d841544737db3c3ba2cca31fbdb98"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_DOUBLE" ref="a014d841544737db3c3ba2cca31fbdb98" args="(mmachine m)" -->
|
51
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a014d841544737db3c3ba2cca31fbdb98">GKF_VALUE_DOUBLE</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
52
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_DOUBLE : Not implemented yet. <br/></td></tr>
|
53
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae53c15ed9a941fc416dc875c33fa0549"></a><!-- doxytag: member="scol_glib_keyfile.c::GKF_VALUE_BOOLEAN" ref="ae53c15ed9a941fc416dc875c33fa0549" args="(mmachine m)" -->
|
54
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#ae53c15ed9a941fc416dc875c33fa0549">GKF_VALUE_BOOLEAN</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
55
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">GKF_VALUE_BOOLEAN : Not implemented yet. <br/></td></tr>
|
56
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a6f12bcb4da2e4078dd6f9e1114bf9a78">SCOL_gkeyFileReadP</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
57
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileReadP : read a key file fun [P S] [[S [[S S] r1]] r1] <a href="#a6f12bcb4da2e4078dd6f9e1114bf9a78"></a><br/></td></tr>
|
58
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a2586215d00599a13084c2e0c05036ebf">SCOL_gkeyFileLoadP</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
59
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileLoadP : Loads a key file from any valid file <a href="#a2586215d00599a13084c2e0c05036ebf"></a><br/></td></tr>
|
60
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#adcba8aaf30ca91edda7d7a85a565c53a">SCOL_gkeyFileLoadS</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
61
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileLoadS : Loads a key file from any valid data <a href="#adcba8aaf30ca91edda7d7a85a565c53a"></a><br/></td></tr>
|
62
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a2d1f70070b05c38d13ffc1ba0fdb7004">SCOL_gkeyFileSave</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
63
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSave : save a keyfile to a filename <a href="#a2d1f70070b05c38d13ffc1ba0fdb7004"></a><br/></td></tr>
|
64
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#ad205d2e208c71b2235117120657ac628">SCOL_gkeyFileDestroy</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
65
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileDestroy : Destroys an object <a href="#ad205d2e208c71b2235117120657ac628"></a><br/></td></tr>
|
66
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#aab669300232623a12b14734f9c2e3d72">SCOL_gkeyFileGetContent</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
67
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetContent : Returns the content of key file <a href="#aab669300232623a12b14734f9c2e3d72"></a><br/></td></tr>
|
68
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a8fd31d8b11e0fe082e9ccf2c43c5452a">SCOL_gkeyFileGetDatas</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
69
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetDatas : Return a list of the content <a href="#a8fd31d8b11e0fe082e9ccf2c43c5452a"></a><br/></td></tr>
|
70
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a9c6ec72bb49b18210465a85b8ae71720">SCOL_gkeyFileGetGroups</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
71
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetGroups : Returns a list of all groups <a href="#a9c6ec72bb49b18210465a85b8ae71720"></a><br/></td></tr>
|
72
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a7982c3e3c9cfd8f837b88c6f6c08326f">SCOL_gkeyFileGetNbGroups</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
73
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetNbGroups : Returns the number of group <a href="#a7982c3e3c9cfd8f837b88c6f6c08326f"></a><br/></td></tr>
|
74
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a2f1cdd3fcfcdabd678640cacc0533dc6">SCOL_gkeyFileDataExist</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
75
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileDataExist : Looks whether the key file has the datas <a href="#a2f1cdd3fcfcdabd678640cacc0533dc6"></a><br/></td></tr>
|
76
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#aecb2b9b0bff670509f362e4a34eb0948">SCOL_keyFileGetValue</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
77
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_keyFileGetValue : Returns the value for any key in any group <a href="#aecb2b9b0bff670509f362e4a34eb0948"></a><br/></td></tr>
|
78
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a3b500a931b68a05625d5572a755ef3e1">SCOL_keyFileGetLocaleValue</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
79
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_keyFileGetLocaleValue : Returns the locale value for any key in any group <a href="#a3b500a931b68a05625d5572a755ef3e1"></a><br/></td></tr>
|
80
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a3866c31166a23d69cf4c9552913dc760">SCOL_gkeyFileGetValueList</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
81
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetValueList : Returns the values associated with key under group <a href="#a3866c31166a23d69cf4c9552913dc760"></a><br/></td></tr>
|
82
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#ab241d8e32381664c6e658ebc155d3572">SCOL_gkeyFileGetValueLocaleList</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
83
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetValueLocaleList : Returns the locales values associated with key under group <a href="#ab241d8e32381664c6e658ebc155d3572"></a><br/></td></tr>
|
84
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#aea8c7ef59225d6c735335a850626f65d">SCOL_gkeyFileGetComment</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
85
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileGetComment : Return a comment <a href="#aea8c7ef59225d6c735335a850626f65d"></a><br/></td></tr>
|
86
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#abc0334075efa227ac898d9a440a14a84">SCOL_gkeyFileSetValue</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
87
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSetValue : Associates a new value with key under group. <a href="#abc0334075efa227ac898d9a440a14a84"></a><br/></td></tr>
|
88
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#ae01ff5f50a68ed221d7aa26b782e81ff">SCOL_gkeyFileSetLocaleValue</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
89
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSetValue : Associates a new value with key under group. <a href="#ae01ff5f50a68ed221d7aa26b782e81ff"></a><br/></td></tr>
|
90
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#aaf93a4f4126ff8622ef56a1457140761">SCOL_gkeyFileSetValueList</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
91
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSetValueList : Associates a list of string for key under group. <a href="#aaf93a4f4126ff8622ef56a1457140761"></a><br/></td></tr>
|
92
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a260bda064fe58708cc6d80cb4bb619c2">SCOL_gkeyFileSetLocaleValueList</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
93
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSetValueList : Associates a list of string for key under group. <a href="#a260bda064fe58708cc6d80cb4bb619c2"></a><br/></td></tr>
|
94
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#ad73d8891b28786f0897f2ed75286d6b1">SCOL_gkeyFileSetComment</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
95
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileSetComment : Comments a key, a group or the key file. <a href="#ad73d8891b28786f0897f2ed75286d6b1"></a><br/></td></tr>
|
96
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#aeae67a9edc30104f7c45bfe56b51a14b">SCOL_gkeyFileRemGroup</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
97
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileRemGroup : Removes the specified group from the object. <a href="#aeae67a9edc30104f7c45bfe56b51a14b"></a><br/></td></tr>
|
98
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a4a5820e3e26952ee81ae76731de1ca95">SCOL_gkeyFileRemKey</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
99
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileRemKey : Removes the specified key in group from the object. <a href="#a4a5820e3e26952ee81ae76731de1ca95"></a><br/></td></tr>
|
100
|
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="scol__glib__keyfile_8c.html#a899e9d67da0f99809d57e5163205bbb6">SCOL_gkeyFileRemComment</a> (<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
101
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">_gkeyFileRemComment : Removes a comment above key from group. <a href="#a899e9d67da0f99809d57e5163205bbb6"></a><br/></td></tr>
|
102
|
<tr><td colspan="2"><h2>Variables</h2></td></tr>
|
103
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af15bdac9bbe43b7b1f7d433619dae969"></a><!-- doxytag: member="scol_glib_keyfile.c::mm" ref="af15bdac9bbe43b7b1f7d433619dae969" args="" -->
|
104
|
<a class="el" href="structMmachine.html">mmachine</a> </td><td class="memItemRight" valign="bottom"><b>mm</b></td></tr>
|
105
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7e611ba9f13eaf2ad7e90ca139e6c0f"></a><!-- doxytag: member="scol_glib_keyfile.c::gkey_name" ref="aa7e611ba9f13eaf2ad7e90ca139e6c0f" args="[GKEYFILE_PKG_NB]" -->
|
106
|
char * </td><td class="memItemRight" valign="bottom"><b>gkey_name</b> [GKEYFILE_PKG_NB]</td></tr>
|
107
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a766d1f4ab753ee137403b362ad4771d6"></a><!-- doxytag: member="scol_glib_keyfile.c::gkey_fun" ref="a766d1f4ab753ee137403b362ad4771d6" args="[GKEYFILE_PKG_NB])(mmachine m)" -->
|
108
|
int(* </td><td class="memItemRight" valign="bottom"><b>gkey_fun</b> [GKEYFILE_PKG_NB])(<a class="el" href="structMmachine.html">mmachine</a> m)</td></tr>
|
109
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a605d8242c10d58a6ce1c5a2d98dbcc19"></a><!-- doxytag: member="scol_glib_keyfile.c::gkey_narg" ref="a605d8242c10d58a6ce1c5a2d98dbcc19" args="[GKEYFILE_PKG_NB]" -->
|
110
|
int </td><td class="memItemRight" valign="bottom"><b>gkey_narg</b> [GKEYFILE_PKG_NB]</td></tr>
|
111
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5efd437d1c968dace21111a331617d39"></a><!-- doxytag: member="scol_glib_keyfile.c::gkey_type" ref="a5efd437d1c968dace21111a331617d39" args="[GKEYFILE_PKG_NB]" -->
|
112
|
char * </td><td class="memItemRight" valign="bottom"><b>gkey_type</b> [GKEYFILE_PKG_NB]</td></tr>
|
113
|
</table>
|
114
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
115
|
<p>all functions of this API </p>
|
116
|
<dl class="author"><dt><b>Author:</b></dt><dd>Stephane Bisaro </dd></dl>
|
117
|
<hr/><h2>Function Documentation</h2>
|
118
|
<a class="anchor" id="a6f12bcb4da2e4078dd6f9e1114bf9a78"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileReadP" ref="a6f12bcb4da2e4078dd6f9e1114bf9a78" args="(mmachine m)" -->
|
119
|
<div class="memitem">
|
120
|
<div class="memproto">
|
121
|
<table class="memname">
|
122
|
<tr>
|
123
|
<td class="memname">int SCOL_gkeyFileReadP </td>
|
124
|
<td>(</td>
|
125
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
126
|
<td class="paramname"> <em>m</em></td>
|
127
|
<td> ) </td>
|
128
|
<td></td>
|
129
|
</tr>
|
130
|
</table>
|
131
|
</div>
|
132
|
<div class="memdoc">
|
133
|
|
134
|
<p>_gkeyFileReadP : read a key file fun [P S] [[S [[S S] r1]] r1] </p>
|
135
|
<dl><dt><b>Parameters:</b></dt><dd>
|
136
|
<table border="0" cellspacing="2" cellpadding="0">
|
137
|
<tr><td valign="top"></td><td valign="top"><em>P</em> </td><td>: any file (read reference only) </td></tr>
|
138
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: the list seperator, or nil (default ";") </td></tr>
|
139
|
</table>
|
140
|
</dd>
|
141
|
</dl>
|
142
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[[S [[S S] r1]] r1] : the list of datas : group names and for each group name, a list of tuple [key value] </dd></dl>
|
143
|
|
144
|
</div>
|
145
|
</div>
|
146
|
<a class="anchor" id="a2586215d00599a13084c2e0c05036ebf"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileLoadP" ref="a2586215d00599a13084c2e0c05036ebf" args="(mmachine m)" -->
|
147
|
<div class="memitem">
|
148
|
<div class="memproto">
|
149
|
<table class="memname">
|
150
|
<tr>
|
151
|
<td class="memname">int SCOL_gkeyFileLoadP </td>
|
152
|
<td>(</td>
|
153
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
154
|
<td class="paramname"> <em>m</em></td>
|
155
|
<td> ) </td>
|
156
|
<td></td>
|
157
|
</tr>
|
158
|
</table>
|
159
|
</div>
|
160
|
<div class="memdoc">
|
161
|
|
162
|
<p>_gkeyFileLoadP : Loads a key file from any valid file </p>
|
163
|
<p>fun [Chn P S I] ObjKeyFile</p>
|
164
|
<dl><dt><b>Parameters:</b></dt><dd>
|
165
|
<table border="0" cellspacing="2" cellpadding="0">
|
166
|
<tr><td valign="top"></td><td valign="top"><em>Chn</em> </td><td>: the channel </td></tr>
|
167
|
<tr><td valign="top"></td><td valign="top"><em>P</em> </td><td>: any read referenced file </td></tr>
|
168
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: the list separator or nil (default ";"). One character only (if more, they are ignored) </td></tr>
|
169
|
<tr><td valign="top"></td><td valign="top"><em>I</em> </td><td>: flag : 0 -> No flags, default behaviour 1 -> Use this flag if you plan to write the (possibly modified) contents of the key file back to a file; otherwise all comments will be lost when the key file is written back. 2 -> Use this flag if you plan to write the (possibly modified) contents of the key file back to a file; otherwise only the translations for the current language will be written back. 3 -> 1 and 2 </td></tr>
|
170
|
</table>
|
171
|
</dd>
|
172
|
</dl>
|
173
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the new object, or nil if error</dd></dl>
|
174
|
<p>Importante note : if you want get/set any localized key, be sure set the flag to 2 (or 3) ! </p>
|
175
|
|
176
|
</div>
|
177
|
</div>
|
178
|
<a class="anchor" id="adcba8aaf30ca91edda7d7a85a565c53a"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileLoadS" ref="adcba8aaf30ca91edda7d7a85a565c53a" args="(mmachine m)" -->
|
179
|
<div class="memitem">
|
180
|
<div class="memproto">
|
181
|
<table class="memname">
|
182
|
<tr>
|
183
|
<td class="memname">int SCOL_gkeyFileLoadS </td>
|
184
|
<td>(</td>
|
185
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
186
|
<td class="paramname"> <em>m</em></td>
|
187
|
<td> ) </td>
|
188
|
<td></td>
|
189
|
</tr>
|
190
|
</table>
|
191
|
</div>
|
192
|
<div class="memdoc">
|
193
|
|
194
|
<p>_gkeyFileLoadS : Loads a key file from any valid data </p>
|
195
|
<p>fun [Chn P S I] ObjKeyFile</p>
|
196
|
<dl><dt><b>Parameters:</b></dt><dd>
|
197
|
<table border="0" cellspacing="2" cellpadding="0">
|
198
|
<tr><td valign="top"></td><td valign="top"><em>Chn</em> </td><td>: the channel </td></tr>
|
199
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any valid content </td></tr>
|
200
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: the list separator or nil (default ";"). One character only (if more, they are ignored) </td></tr>
|
201
|
<tr><td valign="top"></td><td valign="top"><em>I</em> </td><td>: flag : 0 -> No flags, default behaviour 1 -> Use this flag if you plan to write the (possibly modified) contents of the key file back to a file; otherwise all comments will be lost when the key file is written back. 2 -> Use this flag if you plan to write the (possibly modified) contents of the key file back to a file; otherwise only the translations for the current language will be written back. 3 -> 1 and 2 </td></tr>
|
202
|
</table>
|
203
|
</dd>
|
204
|
</dl>
|
205
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the new object, or nil if error </dd></dl>
|
206
|
|
207
|
</div>
|
208
|
</div>
|
209
|
<a class="anchor" id="a2d1f70070b05c38d13ffc1ba0fdb7004"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSave" ref="a2d1f70070b05c38d13ffc1ba0fdb7004" args="(mmachine m)" -->
|
210
|
<div class="memitem">
|
211
|
<div class="memproto">
|
212
|
<table class="memname">
|
213
|
<tr>
|
214
|
<td class="memname">int SCOL_gkeyFileSave </td>
|
215
|
<td>(</td>
|
216
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
217
|
<td class="paramname"> <em>m</em></td>
|
218
|
<td> ) </td>
|
219
|
<td></td>
|
220
|
</tr>
|
221
|
</table>
|
222
|
</div>
|
223
|
<div class="memdoc">
|
224
|
|
225
|
<p>_gkeyFileSave : save a keyfile to a filename </p>
|
226
|
<p>fun [ObjKeyFile W] I</p>
|
227
|
<dl><dt><b>Parameters:</b></dt><dd>
|
228
|
<table border="0" cellspacing="2" cellpadding="0">
|
229
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: a valid object </td></tr>
|
230
|
<tr><td valign="top"></td><td valign="top"><em>W</em> </td><td>: a Scol write referenced filename </td></tr>
|
231
|
</table>
|
232
|
</dd>
|
233
|
</dl>
|
234
|
<dl class="return"><dt><b>Returns:</b></dt><dd>I : 0 if success or nil if error (see log message) </dd></dl>
|
235
|
|
236
|
</div>
|
237
|
</div>
|
238
|
<a class="anchor" id="ad205d2e208c71b2235117120657ac628"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileDestroy" ref="ad205d2e208c71b2235117120657ac628" args="(mmachine m)" -->
|
239
|
<div class="memitem">
|
240
|
<div class="memproto">
|
241
|
<table class="memname">
|
242
|
<tr>
|
243
|
<td class="memname">int SCOL_gkeyFileDestroy </td>
|
244
|
<td>(</td>
|
245
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
246
|
<td class="paramname"> <em>m</em></td>
|
247
|
<td> ) </td>
|
248
|
<td></td>
|
249
|
</tr>
|
250
|
</table>
|
251
|
</div>
|
252
|
<div class="memdoc">
|
253
|
|
254
|
<p>_gkeyFileDestroy : Destroys an object </p>
|
255
|
<dl><dt><b>Parameters:</b></dt><dd>
|
256
|
<table border="0" cellspacing="2" cellpadding="0">
|
257
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td></td></tr>
|
258
|
</table>
|
259
|
</dd>
|
260
|
</dl>
|
261
|
<dl class="return"><dt><b>Returns:</b></dt><dd>I : O or nil if error </dd></dl>
|
262
|
|
263
|
</div>
|
264
|
</div>
|
265
|
<a class="anchor" id="aab669300232623a12b14734f9c2e3d72"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetContent" ref="aab669300232623a12b14734f9c2e3d72" args="(mmachine m)" -->
|
266
|
<div class="memitem">
|
267
|
<div class="memproto">
|
268
|
<table class="memname">
|
269
|
<tr>
|
270
|
<td class="memname">int SCOL_gkeyFileGetContent </td>
|
271
|
<td>(</td>
|
272
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
273
|
<td class="paramname"> <em>m</em></td>
|
274
|
<td> ) </td>
|
275
|
<td></td>
|
276
|
</tr>
|
277
|
</table>
|
278
|
</div>
|
279
|
<div class="memdoc">
|
280
|
|
281
|
<p>_gkeyFileGetContent : Returns the content of key file </p>
|
282
|
<p>fun [ObjKeyFile] [S I]</p>
|
283
|
<dl><dt><b>Parameters:</b></dt><dd>
|
284
|
<table border="0" cellspacing="2" cellpadding="0">
|
285
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any valid object </td></tr>
|
286
|
</table>
|
287
|
</dd>
|
288
|
</dl>
|
289
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[S I] : a tuple : the content and its length or nil if error </dd></dl>
|
290
|
|
291
|
</div>
|
292
|
</div>
|
293
|
<a class="anchor" id="a8fd31d8b11e0fe082e9ccf2c43c5452a"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetDatas" ref="a8fd31d8b11e0fe082e9ccf2c43c5452a" args="(mmachine m)" -->
|
294
|
<div class="memitem">
|
295
|
<div class="memproto">
|
296
|
<table class="memname">
|
297
|
<tr>
|
298
|
<td class="memname">int SCOL_gkeyFileGetDatas </td>
|
299
|
<td>(</td>
|
300
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
301
|
<td class="paramname"> <em>m</em></td>
|
302
|
<td> ) </td>
|
303
|
<td></td>
|
304
|
</tr>
|
305
|
</table>
|
306
|
</div>
|
307
|
<div class="memdoc">
|
308
|
|
309
|
<p>_gkeyFileGetDatas : Return a list of the content </p>
|
310
|
<p>fun [ObjKeyFile] [[S [[S S] r1]] r1]</p>
|
311
|
<dl><dt><b>Parameters:</b></dt><dd>
|
312
|
<table border="0" cellspacing="2" cellpadding="0">
|
313
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object already created </td></tr>
|
314
|
</table>
|
315
|
</dd>
|
316
|
</dl>
|
317
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[[S [[S S] r1]] r1] : a list of group names and for each group name, a list of tuple [key value] or nil if error </dd></dl>
|
318
|
|
319
|
</div>
|
320
|
</div>
|
321
|
<a class="anchor" id="a9c6ec72bb49b18210465a85b8ae71720"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetGroups" ref="a9c6ec72bb49b18210465a85b8ae71720" args="(mmachine m)" -->
|
322
|
<div class="memitem">
|
323
|
<div class="memproto">
|
324
|
<table class="memname">
|
325
|
<tr>
|
326
|
<td class="memname">int SCOL_gkeyFileGetGroups </td>
|
327
|
<td>(</td>
|
328
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
329
|
<td class="paramname"> <em>m</em></td>
|
330
|
<td> ) </td>
|
331
|
<td></td>
|
332
|
</tr>
|
333
|
</table>
|
334
|
</div>
|
335
|
<div class="memdoc">
|
336
|
|
337
|
<p>_gkeyFileGetGroups : Returns a list of all groups </p>
|
338
|
<p>fun [ObjKeyFile] [S r1]</p>
|
339
|
<dl><dt><b>Parameters:</b></dt><dd>
|
340
|
<table border="0" cellspacing="2" cellpadding="0">
|
341
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any object already created </td></tr>
|
342
|
</table>
|
343
|
</dd>
|
344
|
</dl>
|
345
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[S r1] : this list or nil if error </dd></dl>
|
346
|
|
347
|
</div>
|
348
|
</div>
|
349
|
<a class="anchor" id="a7982c3e3c9cfd8f837b88c6f6c08326f"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetNbGroups" ref="a7982c3e3c9cfd8f837b88c6f6c08326f" args="(mmachine m)" -->
|
350
|
<div class="memitem">
|
351
|
<div class="memproto">
|
352
|
<table class="memname">
|
353
|
<tr>
|
354
|
<td class="memname">int SCOL_gkeyFileGetNbGroups </td>
|
355
|
<td>(</td>
|
356
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
357
|
<td class="paramname"> <em>m</em></td>
|
358
|
<td> ) </td>
|
359
|
<td></td>
|
360
|
</tr>
|
361
|
</table>
|
362
|
</div>
|
363
|
<div class="memdoc">
|
364
|
|
365
|
<p>_gkeyFileGetNbGroups : Returns the number of group </p>
|
366
|
<p>fun [ObjKeyFile] I</p>
|
367
|
<dl><dt><b>Parameters:</b></dt><dd>
|
368
|
<table border="0" cellspacing="2" cellpadding="0">
|
369
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any object already created </td></tr>
|
370
|
</table>
|
371
|
</dd>
|
372
|
</dl>
|
373
|
<dl class="return"><dt><b>Returns:</b></dt><dd>I : this number or nil if error </dd></dl>
|
374
|
|
375
|
</div>
|
376
|
</div>
|
377
|
<a class="anchor" id="a2f1cdd3fcfcdabd678640cacc0533dc6"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileDataExist" ref="a2f1cdd3fcfcdabd678640cacc0533dc6" args="(mmachine m)" -->
|
378
|
<div class="memitem">
|
379
|
<div class="memproto">
|
380
|
<table class="memname">
|
381
|
<tr>
|
382
|
<td class="memname">int SCOL_gkeyFileDataExist </td>
|
383
|
<td>(</td>
|
384
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
385
|
<td class="paramname"> <em>m</em></td>
|
386
|
<td> ) </td>
|
387
|
<td></td>
|
388
|
</tr>
|
389
|
</table>
|
390
|
</div>
|
391
|
<div class="memdoc">
|
392
|
|
393
|
<p>_gkeyFileDataExist : Looks whether the key file has the datas </p>
|
394
|
<p>fun [ObjKeyFile S S] I</p>
|
395
|
<dl><dt><b>Parameters:</b></dt><dd>
|
396
|
<table border="0" cellspacing="2" cellpadding="0">
|
397
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any object already created </td></tr>
|
398
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group name or nil </td></tr>
|
399
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key name or nil </td></tr>
|
400
|
</table>
|
401
|
</dd>
|
402
|
</dl>
|
403
|
<dl class="return"><dt><b>Returns:</b></dt><dd>I : the result (see below) or nil if error</dd></dl>
|
404
|
<p>If the group name and the key name are not nil, this function searches the key into the group. If found, 1 is returned, else 0 If the group name is nil, this function searches the key into all groups. The returned value is the number of this key, 0 if not found. If the key name is nil, this function searches the group into the keyfile. If found, 1 is returned, else 0. If the keyfile is nil or if the group and key names are nil, nil is returned. </p>
|
405
|
|
406
|
</div>
|
407
|
</div>
|
408
|
<a class="anchor" id="aecb2b9b0bff670509f362e4a34eb0948"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_keyFileGetValue" ref="aecb2b9b0bff670509f362e4a34eb0948" args="(mmachine m)" -->
|
409
|
<div class="memitem">
|
410
|
<div class="memproto">
|
411
|
<table class="memname">
|
412
|
<tr>
|
413
|
<td class="memname">int SCOL_keyFileGetValue </td>
|
414
|
<td>(</td>
|
415
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
416
|
<td class="paramname"> <em>m</em></td>
|
417
|
<td> ) </td>
|
418
|
<td></td>
|
419
|
</tr>
|
420
|
</table>
|
421
|
</div>
|
422
|
<div class="memdoc">
|
423
|
|
424
|
<p>_keyFileGetValue : Returns the value for any key in any group </p>
|
425
|
<p>fun [ObjKeyFile S S I] S</p>
|
426
|
<dl><dt><b>Parameters:</b></dt><dd>
|
427
|
<table border="0" cellspacing="2" cellpadding="0">
|
428
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any valid object </td></tr>
|
429
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any group name </td></tr>
|
430
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any key name </td></tr>
|
431
|
<tr><td valign="top"></td><td valign="top"><em>I</em> </td><td>: flag : GKF_VALUE_RAW, GKF_VALUE_STRING, GKF_VALUE_INTEGER, GKF_VALUE_INTEGER64, GKF_VALUE_UINTEGER64, GKF_VALUE_DOUBLE, GKF_VALUE_BOOLEAN GKF_VALUE_RAW and GKF_VALUE_STRING have a difference, others always return a string </td></tr>
|
432
|
</table>
|
433
|
</dd>
|
434
|
</dl>
|
435
|
<dl class="return"><dt><b>Returns:</b></dt><dd>S : the value or nil if error or not found </dd></dl>
|
436
|
|
437
|
</div>
|
438
|
</div>
|
439
|
<a class="anchor" id="a3b500a931b68a05625d5572a755ef3e1"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_keyFileGetLocaleValue" ref="a3b500a931b68a05625d5572a755ef3e1" args="(mmachine m)" -->
|
440
|
<div class="memitem">
|
441
|
<div class="memproto">
|
442
|
<table class="memname">
|
443
|
<tr>
|
444
|
<td class="memname">int SCOL_keyFileGetLocaleValue </td>
|
445
|
<td>(</td>
|
446
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
447
|
<td class="paramname"> <em>m</em></td>
|
448
|
<td> ) </td>
|
449
|
<td></td>
|
450
|
</tr>
|
451
|
</table>
|
452
|
</div>
|
453
|
<div class="memdoc">
|
454
|
|
455
|
<p>_keyFileGetLocaleValue : Returns the locale value for any key in any group </p>
|
456
|
<p>fun [ObjKeyFile S S S] S</p>
|
457
|
<dl><dt><b>Parameters:</b></dt><dd>
|
458
|
<table border="0" cellspacing="2" cellpadding="0">
|
459
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any valid object </td></tr>
|
460
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any group name </td></tr>
|
461
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any key name </td></tr>
|
462
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any locale identifier or nil </td></tr>
|
463
|
</table>
|
464
|
</dd>
|
465
|
</dl>
|
466
|
<dl class="return"><dt><b>Returns:</b></dt><dd>S : the value or nil if error or not found</dd></dl>
|
467
|
<p>If locale is nil or not found, the value of the default key (without localization) will be returned When the ObjKeyFile has been created, if the flag is at 0 or 1, the current locale can be used only. In this last case, to get a value of an other locale, the flag should have set to 2 or 3. </p>
|
468
|
|
469
|
</div>
|
470
|
</div>
|
471
|
<a class="anchor" id="a3866c31166a23d69cf4c9552913dc760"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetValueList" ref="a3866c31166a23d69cf4c9552913dc760" args="(mmachine m)" -->
|
472
|
<div class="memitem">
|
473
|
<div class="memproto">
|
474
|
<table class="memname">
|
475
|
<tr>
|
476
|
<td class="memname">int SCOL_gkeyFileGetValueList </td>
|
477
|
<td>(</td>
|
478
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
479
|
<td class="paramname"> <em>m</em></td>
|
480
|
<td> ) </td>
|
481
|
<td></td>
|
482
|
</tr>
|
483
|
</table>
|
484
|
</div>
|
485
|
<div class="memdoc">
|
486
|
|
487
|
<p>_gkeyFileGetValueList : Returns the values associated with key under group </p>
|
488
|
<p>fun [ObjKeyFile S S] [S r1]</p>
|
489
|
<dl><dt><b>Parameters:</b></dt><dd>
|
490
|
<table border="0" cellspacing="2" cellpadding="0">
|
491
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any valid object </td></tr>
|
492
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any group name </td></tr>
|
493
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any key name </td></tr>
|
494
|
</table>
|
495
|
</dd>
|
496
|
</dl>
|
497
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[S r1] : the value or nil if error or not found </dd></dl>
|
498
|
|
499
|
</div>
|
500
|
</div>
|
501
|
<a class="anchor" id="ab241d8e32381664c6e658ebc155d3572"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetValueLocaleList" ref="ab241d8e32381664c6e658ebc155d3572" args="(mmachine m)" -->
|
502
|
<div class="memitem">
|
503
|
<div class="memproto">
|
504
|
<table class="memname">
|
505
|
<tr>
|
506
|
<td class="memname">int SCOL_gkeyFileGetValueLocaleList </td>
|
507
|
<td>(</td>
|
508
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
509
|
<td class="paramname"> <em>m</em></td>
|
510
|
<td> ) </td>
|
511
|
<td></td>
|
512
|
</tr>
|
513
|
</table>
|
514
|
</div>
|
515
|
<div class="memdoc">
|
516
|
|
517
|
<p>_gkeyFileGetValueLocaleList : Returns the locales values associated with key under group </p>
|
518
|
<p>fun [ObjKeyFile S S S] [S r1]</p>
|
519
|
<dl><dt><b>Parameters:</b></dt><dd>
|
520
|
<table border="0" cellspacing="2" cellpadding="0">
|
521
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: any valid object </td></tr>
|
522
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any group name </td></tr>
|
523
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any key name </td></tr>
|
524
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: any locale identifier or nil </td></tr>
|
525
|
</table>
|
526
|
</dd>
|
527
|
</dl>
|
528
|
<dl class="return"><dt><b>Returns:</b></dt><dd>[S r1] : the value or nil if error or not found</dd></dl>
|
529
|
<p>If locale is nil or not found, the values of the default key (without localization) will be returned When the ObjKeyFile has been created, if the flag is at 0 or 1, the current locale can be used only. In this last case, to get the values of an other locale, the flag should have set to 2 or 3. </p>
|
530
|
|
531
|
</div>
|
532
|
</div>
|
533
|
<a class="anchor" id="aea8c7ef59225d6c735335a850626f65d"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileGetComment" ref="aea8c7ef59225d6c735335a850626f65d" args="(mmachine m)" -->
|
534
|
<div class="memitem">
|
535
|
<div class="memproto">
|
536
|
<table class="memname">
|
537
|
<tr>
|
538
|
<td class="memname">int SCOL_gkeyFileGetComment </td>
|
539
|
<td>(</td>
|
540
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
541
|
<td class="paramname"> <em>m</em></td>
|
542
|
<td> ) </td>
|
543
|
<td></td>
|
544
|
</tr>
|
545
|
</table>
|
546
|
</div>
|
547
|
<div class="memdoc">
|
548
|
|
549
|
<p>_gkeyFileGetComment : Return a comment </p>
|
550
|
<p>fun [ObjKeyFile S S] S</p>
|
551
|
<dl><dt><b>Parameters:</b></dt><dd>
|
552
|
<table border="0" cellspacing="2" cellpadding="0">
|
553
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object </td></tr>
|
554
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group name </td></tr>
|
555
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key name </td></tr>
|
556
|
</table>
|
557
|
</dd>
|
558
|
</dl>
|
559
|
<dl class="return"><dt><b>Returns:</b></dt><dd>S : the comment or nil if error or not found</dd></dl>
|
560
|
<p>Retrieves a comment above key name from group name. If key is NULL then comment will be read from above group name. If both key name and group name are NULL, then comment will be read from above the first group in the file. </p>
|
561
|
|
562
|
</div>
|
563
|
</div>
|
564
|
<a class="anchor" id="abc0334075efa227ac898d9a440a14a84"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSetValue" ref="abc0334075efa227ac898d9a440a14a84" args="(mmachine m)" -->
|
565
|
<div class="memitem">
|
566
|
<div class="memproto">
|
567
|
<table class="memname">
|
568
|
<tr>
|
569
|
<td class="memname">int SCOL_gkeyFileSetValue </td>
|
570
|
<td>(</td>
|
571
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
572
|
<td class="paramname"> <em>m</em></td>
|
573
|
<td> ) </td>
|
574
|
<td></td>
|
575
|
</tr>
|
576
|
</table>
|
577
|
</div>
|
578
|
<div class="memdoc">
|
579
|
|
580
|
<p>_gkeyFileSetValue : Associates a new value with key under group. </p>
|
581
|
<p>Fun [ObjKeyFile S S S I] ObjKeyFile If key cannot be found then it is created. If group cannot be found then it is created.</p>
|
582
|
<dl><dt><b>Parameters:</b></dt><dd>
|
583
|
<table border="0" cellspacing="2" cellpadding="0">
|
584
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: a valid object </td></tr>
|
585
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group name </td></tr>
|
586
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key name </td></tr>
|
587
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: the new value </td></tr>
|
588
|
<tr><td valign="top"></td><td valign="top"><em>I</em> </td><td>: a flag : GKF_VALUE_RAW or GKF_VALUE_STRING (others flags aren't implemented yet) </td></tr>
|
589
|
</table>
|
590
|
</dd>
|
591
|
</dl>
|
592
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error</dd></dl>
|
593
|
<p>If key or group is nil, the command is ignored but a message is written to the log </p>
|
594
|
|
595
|
</div>
|
596
|
</div>
|
597
|
<a class="anchor" id="ae01ff5f50a68ed221d7aa26b782e81ff"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSetLocaleValue" ref="ae01ff5f50a68ed221d7aa26b782e81ff" args="(mmachine m)" -->
|
598
|
<div class="memitem">
|
599
|
<div class="memproto">
|
600
|
<table class="memname">
|
601
|
<tr>
|
602
|
<td class="memname">int SCOL_gkeyFileSetLocaleValue </td>
|
603
|
<td>(</td>
|
604
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
605
|
<td class="paramname"> <em>m</em></td>
|
606
|
<td> ) </td>
|
607
|
<td></td>
|
608
|
</tr>
|
609
|
</table>
|
610
|
</div>
|
611
|
<div class="memdoc">
|
612
|
|
613
|
<p>_gkeyFileSetValue : Associates a new value with key under group. </p>
|
614
|
<p>Fun [ObjKeyFile S S S I] ObjKeyFile If key cannot be found then it is created. If group cannot be found then it is created.</p>
|
615
|
<dl><dt><b>Parameters:</b></dt><dd>
|
616
|
<table border="0" cellspacing="2" cellpadding="0">
|
617
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: a valid object </td></tr>
|
618
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group name </td></tr>
|
619
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key name </td></tr>
|
620
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: the new value </td></tr>
|
621
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a locale identifier </td></tr>
|
622
|
</table>
|
623
|
</dd>
|
624
|
</dl>
|
625
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error</dd></dl>
|
626
|
<p>If key or group is nil, the command is ignored but a message is written to the log </p>
|
627
|
|
628
|
</div>
|
629
|
</div>
|
630
|
<a class="anchor" id="aaf93a4f4126ff8622ef56a1457140761"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSetValueList" ref="aaf93a4f4126ff8622ef56a1457140761" args="(mmachine m)" -->
|
631
|
<div class="memitem">
|
632
|
<div class="memproto">
|
633
|
<table class="memname">
|
634
|
<tr>
|
635
|
<td class="memname">int SCOL_gkeyFileSetValueList </td>
|
636
|
<td>(</td>
|
637
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
638
|
<td class="paramname"> <em>m</em></td>
|
639
|
<td> ) </td>
|
640
|
<td></td>
|
641
|
</tr>
|
642
|
</table>
|
643
|
</div>
|
644
|
<div class="memdoc">
|
645
|
|
646
|
<p>_gkeyFileSetValueList : Associates a list of string for key under group. </p>
|
647
|
<p>fun [ObjKeyFile S S [S r1] ObjKeyFile If key cannot be found then it is created. If group cannot be found then it is created.</p>
|
648
|
<dl><dt><b>Parameters:</b></dt><dd>
|
649
|
<table border="0" cellspacing="2" cellpadding="0">
|
650
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>ObjKeyFile : an object </td></tr>
|
651
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>S : a group </td></tr>
|
652
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>S : a key </td></tr>
|
653
|
<tr><td valign="top"></td><td valign="top"><em>[S</em> </td><td>r1] : a list of values </td></tr>
|
654
|
</table>
|
655
|
</dd>
|
656
|
</dl>
|
657
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error</dd></dl>
|
658
|
<p>If key or group is nil, the command is ignored but a message is written to the log </p>
|
659
|
|
660
|
</div>
|
661
|
</div>
|
662
|
<a class="anchor" id="a260bda064fe58708cc6d80cb4bb619c2"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSetLocaleValueList" ref="a260bda064fe58708cc6d80cb4bb619c2" args="(mmachine m)" -->
|
663
|
<div class="memitem">
|
664
|
<div class="memproto">
|
665
|
<table class="memname">
|
666
|
<tr>
|
667
|
<td class="memname">int SCOL_gkeyFileSetLocaleValueList </td>
|
668
|
<td>(</td>
|
669
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
670
|
<td class="paramname"> <em>m</em></td>
|
671
|
<td> ) </td>
|
672
|
<td></td>
|
673
|
</tr>
|
674
|
</table>
|
675
|
</div>
|
676
|
<div class="memdoc">
|
677
|
|
678
|
<p>_gkeyFileSetValueList : Associates a list of string for key under group. </p>
|
679
|
<p>fun [ObjKeyFile S S S [S r1] ObjKeyFile If key cannot be found then it is created. If group cannot be found then it is created.</p>
|
680
|
<dl><dt><b>Parameters:</b></dt><dd>
|
681
|
<table border="0" cellspacing="2" cellpadding="0">
|
682
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>ObjKeyFile : an object </td></tr>
|
683
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>S : a group </td></tr>
|
684
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>S : a key </td></tr>
|
685
|
<tr><td valign="top"></td><td valign="top"><em>:</em> </td><td>S : a locale identifier </td></tr>
|
686
|
<tr><td valign="top"></td><td valign="top"><em>[S</em> </td><td>r1] : a list of values </td></tr>
|
687
|
</table>
|
688
|
</dd>
|
689
|
</dl>
|
690
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error</dd></dl>
|
691
|
<p>If key or group is nil, the command is ignored but a message is written to the log </p>
|
692
|
|
693
|
</div>
|
694
|
</div>
|
695
|
<a class="anchor" id="ad73d8891b28786f0897f2ed75286d6b1"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileSetComment" ref="ad73d8891b28786f0897f2ed75286d6b1" args="(mmachine m)" -->
|
696
|
<div class="memitem">
|
697
|
<div class="memproto">
|
698
|
<table class="memname">
|
699
|
<tr>
|
700
|
<td class="memname">int SCOL_gkeyFileSetComment </td>
|
701
|
<td>(</td>
|
702
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
703
|
<td class="paramname"> <em>m</em></td>
|
704
|
<td> ) </td>
|
705
|
<td></td>
|
706
|
</tr>
|
707
|
</table>
|
708
|
</div>
|
709
|
<div class="memdoc">
|
710
|
|
711
|
<p>_gkeyFileSetComment : Comments a key, a group or the key file. </p>
|
712
|
<p>fun [ObjKeyFile S S S] ObjKeyFile</p>
|
713
|
<dl><dt><b>Parameters:</b></dt><dd>
|
714
|
<table border="0" cellspacing="2" cellpadding="0">
|
715
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object already created </td></tr>
|
716
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group </td></tr>
|
717
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key name </td></tr>
|
718
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a comment </td></tr>
|
719
|
</table>
|
720
|
</dd>
|
721
|
</dl>
|
722
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error</dd></dl>
|
723
|
<p>See _gkeyFileGetComment too </p>
|
724
|
|
725
|
</div>
|
726
|
</div>
|
727
|
<a class="anchor" id="aeae67a9edc30104f7c45bfe56b51a14b"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileRemGroup" ref="aeae67a9edc30104f7c45bfe56b51a14b" args="(mmachine m)" -->
|
728
|
<div class="memitem">
|
729
|
<div class="memproto">
|
730
|
<table class="memname">
|
731
|
<tr>
|
732
|
<td class="memname">int SCOL_gkeyFileRemGroup </td>
|
733
|
<td>(</td>
|
734
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
735
|
<td class="paramname"> <em>m</em></td>
|
736
|
<td> ) </td>
|
737
|
<td></td>
|
738
|
</tr>
|
739
|
</table>
|
740
|
</div>
|
741
|
<div class="memdoc">
|
742
|
|
743
|
<p>_gkeyFileRemGroup : Removes the specified group from the object. </p>
|
744
|
<p>fun [ObjKeyFile S] ObjKeyFile</p>
|
745
|
<dl><dt><b>Parameters:</b></dt><dd>
|
746
|
<table border="0" cellspacing="2" cellpadding="0">
|
747
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object already created </td></tr>
|
748
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group </td></tr>
|
749
|
</table>
|
750
|
</dd>
|
751
|
</dl>
|
752
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error </dd></dl>
|
753
|
|
754
|
</div>
|
755
|
</div>
|
756
|
<a class="anchor" id="a4a5820e3e26952ee81ae76731de1ca95"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileRemKey" ref="a4a5820e3e26952ee81ae76731de1ca95" args="(mmachine m)" -->
|
757
|
<div class="memitem">
|
758
|
<div class="memproto">
|
759
|
<table class="memname">
|
760
|
<tr>
|
761
|
<td class="memname">int SCOL_gkeyFileRemKey </td>
|
762
|
<td>(</td>
|
763
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
764
|
<td class="paramname"> <em>m</em></td>
|
765
|
<td> ) </td>
|
766
|
<td></td>
|
767
|
</tr>
|
768
|
</table>
|
769
|
</div>
|
770
|
<div class="memdoc">
|
771
|
|
772
|
<p>_gkeyFileRemKey : Removes the specified key in group from the object. </p>
|
773
|
<p>fun [ObjKeyFile S S] ObjKeyFile</p>
|
774
|
<dl><dt><b>Parameters:</b></dt><dd>
|
775
|
<table border="0" cellspacing="2" cellpadding="0">
|
776
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object already created </td></tr>
|
777
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group </td></tr>
|
778
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key </td></tr>
|
779
|
</table>
|
780
|
</dd>
|
781
|
</dl>
|
782
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error </dd></dl>
|
783
|
|
784
|
</div>
|
785
|
</div>
|
786
|
<a class="anchor" id="a899e9d67da0f99809d57e5163205bbb6"></a><!-- doxytag: member="scol_glib_keyfile.c::SCOL_gkeyFileRemComment" ref="a899e9d67da0f99809d57e5163205bbb6" args="(mmachine m)" -->
|
787
|
<div class="memitem">
|
788
|
<div class="memproto">
|
789
|
<table class="memname">
|
790
|
<tr>
|
791
|
<td class="memname">int SCOL_gkeyFileRemComment </td>
|
792
|
<td>(</td>
|
793
|
<td class="paramtype"><a class="el" href="structMmachine.html">mmachine</a> </td>
|
794
|
<td class="paramname"> <em>m</em></td>
|
795
|
<td> ) </td>
|
796
|
<td></td>
|
797
|
</tr>
|
798
|
</table>
|
799
|
</div>
|
800
|
<div class="memdoc">
|
801
|
|
802
|
<p>_gkeyFileRemComment : Removes a comment above key from group. </p>
|
803
|
<p>fun [ObjKeyFile S S] ObjKeyFile If key is NULL then comment will be removed above group. If both key and group are NULL, then comment will be removed above the first group in the file.</p>
|
804
|
<dl><dt><b>Parameters:</b></dt><dd>
|
805
|
<table border="0" cellspacing="2" cellpadding="0">
|
806
|
<tr><td valign="top"></td><td valign="top"><em>ObjKeyFile</em> </td><td>: an object already created </td></tr>
|
807
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a group </td></tr>
|
808
|
<tr><td valign="top"></td><td valign="top"><em>S</em> </td><td>: a key </td></tr>
|
809
|
</table>
|
810
|
</dd>
|
811
|
</dl>
|
812
|
<dl class="return"><dt><b>Returns:</b></dt><dd>ObjKeyFile : the same object or nil if error </dd></dl>
|
813
|
|
814
|
</div>
|
815
|
</div>
|
816
|
</div>
|
817
|
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Mar 10 14:04:18 2011 for keyfile by
|
818
|
<a href="http://www.doxygen.org/index.html">
|
819
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
|
820
|
</body>
|
821
|
</html>
|