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>EXMLHash</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="Evolution-Data-Server Manual: Utilities (libedataserver)">
8
<link rel="up" href="ch01.html" title="Evolution-Data-Server Manual: Utilities (libedataserver)">
9
<link rel="prev" href="libedataserver-e-url.html" title="EUrl">
10
<link rel="next" href="libedataserver-Version-Information.html" title="Version Information">
11
<meta name="generator" content="GTK-Doc V1.14 (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="2">
17
<td><a accesskey="p" href="libedataserver-e-url.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Evolution-Data-Server Manual: Utilities (libedataserver)</th>
21
<td><a accesskey="n" href="libedataserver-Version-Information.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libedataserver-e-xml-hash-utils.synopsis" class="shortcut">Top</a>
26
<a href="#libedataserver-e-xml-hash-utils.description" class="shortcut">Description</a>
29
<div class="refentry" title="EXMLHash">
30
<a name="libedataserver-e-xml-hash-utils"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="libedataserver-e-xml-hash-utils.top_of_page"></a>EXMLHash</span></h2>
34
<p>EXMLHash — Functions for manipulating xml as a hash table.</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv" title="Synopsis">
39
<a name="libedataserver-e-xml-hash-utils.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">enum <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType">EXmlHashType</a>;
41
<span class="returnvalue">GHashTable</span> * <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xml-to-hash" title="e_xml_to_hash ()">e_xml_to_hash</a> (<em class="parameter"><code><span class="type">xmlDoc</span> *doc</code></em>,
42
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType"><span class="type">EXmlHashType</span></a> type</code></em>);
43
<span class="returnvalue">xmlDoc</span> * <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xml-from-hash" title="e_xml_from_hash ()">e_xml_from_hash</a> (<em class="parameter"><code><span class="type">GHashTable</span> *hash</code></em>,
44
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType"><span class="type">EXmlHashType</span></a> type</code></em>,
45
<em class="parameter"><code>const <span class="type">gchar</span> *root_node</code></em>);
46
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xml-destroy-hash" title="e_xml_destroy_hash ()">e_xml_destroy_hash</a> (<em class="parameter"><code><span class="type">GHashTable</span> *hash</code></em>);
47
enum <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus" title="enum EXmlHashStatus">EXmlHashStatus</a>;
48
<span class="returnvalue">void</span> (<a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc" title="EXmlHashFunc ()">*EXmlHashFunc</a>) (<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
49
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
50
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
51
<span class="returnvalue">gboolean</span> (<a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashRemoveFunc" title="EXmlHashRemoveFunc ()">*EXmlHashRemoveFunc</a>) (<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
52
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
53
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
54
typedef <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash">EXmlHash</a>;
55
<a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="returnvalue">EXmlHash</span></a> * <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-new" title="e_xmlhash_new ()">e_xmlhash_new</a> (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);
56
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-add" title="e_xmlhash_add ()">e_xmlhash_add</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
57
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
58
<em class="parameter"><code>const <span class="type">gchar</span> *data</code></em>);
59
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-remove" title="e_xmlhash_remove ()">e_xmlhash_remove</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
60
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);
61
<a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus" title="enum EXmlHashStatus"><span class="returnvalue">EXmlHashStatus</span></a> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-compare" title="e_xmlhash_compare ()">e_xmlhash_compare</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
62
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
63
<em class="parameter"><code>const <span class="type">gchar</span> *compare_data</code></em>);
64
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-foreach-key" title="e_xmlhash_foreach_key ()">e_xmlhash_foreach_key</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
65
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc" title="EXmlHashFunc ()"><span class="type">EXmlHashFunc</span></a> func</code></em>,
66
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
67
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-foreach-key-remove" title="e_xmlhash_foreach_key_remove ()">e_xmlhash_foreach_key_remove</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
68
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashRemoveFunc" title="EXmlHashRemoveFunc ()"><span class="type">EXmlHashRemoveFunc</span></a> func</code></em>,
69
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
70
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-write" title="e_xmlhash_write ()">e_xmlhash_write</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>);
71
<span class="returnvalue">void</span> <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-destroy" title="e_xmlhash_destroy ()">e_xmlhash_destroy</a> (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>);
74
<div class="refsect1" title="Description">
75
<a name="libedataserver-e-xml-hash-utils.description"></a><h2>Description</h2>
79
<div class="refsect1" title="Details">
80
<a name="libedataserver-e-xml-hash-utils.details"></a><h2>Details</h2>
81
<div class="refsect2" title="enum EXmlHashType">
82
<a name="EXmlHashType"></a><h3>enum EXmlHashType</h3>
83
<pre class="programlisting">typedef enum {
84
E_XML_HASH_TYPE_OBJECT_UID,
85
E_XML_HASH_TYPE_PROPERTY
88
<div class="variablelist"><table border="0">
89
<col align="left" valign="top">
92
<td><p><a name="E-XML-HASH-TYPE-OBJECT-UID:CAPS"></a><span class="term"><code class="literal">E_XML_HASH_TYPE_OBJECT_UID</code></span></p></td>
93
<td>Use the object UID as the hash key.
97
<td><p><a name="E-XML-HASH-TYPE-PROPERTY:CAPS"></a><span class="term"><code class="literal">E_XML_HASH_TYPE_PROPERTY</code></span></p></td>
98
<td>Use the property name as the hash key.
105
<div class="refsect2" title="e_xml_to_hash ()">
106
<a name="e-xml-to-hash"></a><h3>e_xml_to_hash ()</h3>
107
<pre class="programlisting"><span class="returnvalue">GHashTable</span> * e_xml_to_hash (<em class="parameter"><code><span class="type">xmlDoc</span> *doc</code></em>,
108
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType"><span class="type">EXmlHashType</span></a> type</code></em>);</pre>
110
Creates a <span class="type">GHashTable</span> representation of the <span class="type">xmlDoc</span> <em class="parameter"><code>doc</code></em>.
111
If <em class="parameter"><code>type</code></em> is * <em class="parameter"><code>E_XML_HASH_TYPE_PROPERTY</code></em>, all XML nodes will be
112
indexed in the <span class="type">GHashTable</span> by name. If <em class="parameter"><code>type</code></em> is
113
<a class="link" href="libedataserver-e-xml-hash-utils.html#E-XML-HASH-TYPE-OBJECT-UID:CAPS"><code class="literal">E_XML_HASH_TYPE_OBJECT_UID</code></a>, then XML objects will be indexed in
114
the hash by their UID (other nodes will still be indexed by name).
116
<div class="variablelist"><table border="0">
117
<col align="left" valign="top">
120
<td><p><span class="term"><em class="parameter"><code>doc</code></em> :</span></p></td>
121
<td>The <span class="type">xmlDoc</span> to store in a hash table.
125
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
126
<td>The value type to use as a key in the hash table.
130
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
131
<td> The newly-created <span class="type">GHashTable</span> representation of <em class="parameter"><code>doc</code></em>.
138
<div class="refsect2" title="e_xml_from_hash ()">
139
<a name="e-xml-from-hash"></a><h3>e_xml_from_hash ()</h3>
140
<pre class="programlisting"><span class="returnvalue">xmlDoc</span> * e_xml_from_hash (<em class="parameter"><code><span class="type">GHashTable</span> *hash</code></em>,
141
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType"><span class="type">EXmlHashType</span></a> type</code></em>,
142
<em class="parameter"><code>const <span class="type">gchar</span> *root_node</code></em>);</pre>
144
Uses the key/value pair representation of an XML structure in <em class="parameter"><code>hash</code></em>
145
to build an equivalent <span class="type">xmlDoc</span>. This is the reverse of
146
<a class="link" href="libedataserver-e-xml-hash-utils.html#e-xml-to-hash" title="e_xml_to_hash ()"><code class="function">e_xml_to_hash()</code></a>.
148
<div class="variablelist"><table border="0">
149
<col align="left" valign="top">
152
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
153
<td>The <span class="type">GHashTable</span> to extract the XML from.
157
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
158
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashType" title="enum EXmlHashType"><span class="type">EXmlHashType</span></a> used to store the XML.
162
<td><p><span class="term"><em class="parameter"><code>root_node</code></em> :</span></p></td>
167
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
168
<td> The <span class="type">xmlDoc</span> created from the data in <em class="parameter"><code>hash</code></em>.
175
<div class="refsect2" title="e_xml_destroy_hash ()">
176
<a name="e-xml-destroy-hash"></a><h3>e_xml_destroy_hash ()</h3>
177
<pre class="programlisting"><span class="returnvalue">void</span> e_xml_destroy_hash (<em class="parameter"><code><span class="type">GHashTable</span> *hash</code></em>);</pre>
179
Frees the memory used by <em class="parameter"><code>hash</code></em> and its contents.
181
<div class="variablelist"><table border="0">
182
<col align="left" valign="top">
184
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
185
<td>The <span class="type">GHashTable</span> to destroy.
191
<div class="refsect2" title="enum EXmlHashStatus">
192
<a name="EXmlHashStatus"></a><h3>enum EXmlHashStatus</h3>
193
<pre class="programlisting">typedef enum {
194
E_XMLHASH_STATUS_SAME,
195
E_XMLHASH_STATUS_DIFFERENT,
196
E_XMLHASH_STATUS_NOT_FOUND
199
<div class="variablelist"><table border="0">
200
<col align="left" valign="top">
203
<td><p><a name="E-XMLHASH-STATUS-SAME:CAPS"></a><span class="term"><code class="literal">E_XMLHASH_STATUS_SAME</code></span></p></td>
204
<td>The compared values are the same.
208
<td><p><a name="E-XMLHASH-STATUS-DIFFERENT:CAPS"></a><span class="term"><code class="literal">E_XMLHASH_STATUS_DIFFERENT</code></span></p></td>
209
<td>The compared values are different.
213
<td><p><a name="E-XMLHASH-STATUS-NOT-FOUND:CAPS"></a><span class="term"><code class="literal">E_XMLHASH_STATUS_NOT_FOUND</code></span></p></td>
214
<td>The key to compare against was not found.
221
<div class="refsect2" title="EXmlHashFunc ()">
222
<a name="EXmlHashFunc"></a><h3>EXmlHashFunc ()</h3>
223
<pre class="programlisting"><span class="returnvalue">void</span> (*EXmlHashFunc) (<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
224
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
225
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
228
<div class="variablelist"><table border="0">
229
<col align="left" valign="top">
232
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
237
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
242
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
250
<div class="refsect2" title="EXmlHashRemoveFunc ()">
251
<a name="EXmlHashRemoveFunc"></a><h3>EXmlHashRemoveFunc ()</h3>
252
<pre class="programlisting"><span class="returnvalue">gboolean</span> (*EXmlHashRemoveFunc) (<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
253
<em class="parameter"><code>const <span class="type">gchar</span> *value</code></em>,
254
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
257
<div class="variablelist"><table border="0">
258
<col align="left" valign="top">
261
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
266
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
271
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
276
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
284
<div class="refsect2" title="EXmlHash">
285
<a name="EXmlHash"></a><h3>EXmlHash</h3>
286
<pre class="programlisting">typedef struct EXmlHash EXmlHash;
289
A hash table representation of an XML file.
293
<div class="refsect2" title="e_xmlhash_new ()">
294
<a name="e-xmlhash-new"></a><h3>e_xmlhash_new ()</h3>
295
<pre class="programlisting"><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="returnvalue">EXmlHash</span></a> * e_xmlhash_new (<em class="parameter"><code>const <span class="type">gchar</span> *filename</code></em>);</pre>
297
Creates a new <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> from the file <em class="parameter"><code>filename</code></em>. If <em class="parameter"><code>filename</code></em> does
298
not already exist, an empty <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> will be created.
300
<div class="variablelist"><table border="0">
301
<col align="left" valign="top">
304
<td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
305
<td>The name of an XML file.
309
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
310
<td> The new <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> structure, or <code class="literal">NULL</code> if unable to parse
311
<em class="parameter"><code>filename</code></em>.
318
<div class="refsect2" title="e_xmlhash_add ()">
319
<a name="e-xmlhash-add"></a><h3>e_xmlhash_add ()</h3>
320
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_add (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
321
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
322
<em class="parameter"><code>const <span class="type">gchar</span> *data</code></em>);</pre>
324
Adds a new key/value pair to the <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> <em class="parameter"><code>hash</code></em>.
326
<div class="variablelist"><table border="0">
327
<col align="left" valign="top">
330
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
331
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> to add an entry to.
335
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
336
<td>The key to use for the entry.
340
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
341
<td>The value of the new entry.
348
<div class="refsect2" title="e_xmlhash_remove ()">
349
<a name="e-xmlhash-remove"></a><h3>e_xmlhash_remove ()</h3>
350
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_remove (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
351
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>);</pre>
353
Remove the entry in <em class="parameter"><code>hash</code></em> with key equal to <em class="parameter"><code>key</code></em>, if it exists.
355
<div class="variablelist"><table border="0">
356
<col align="left" valign="top">
359
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
360
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> to remove an entry from.
364
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
365
<td>The key of the entry to remove.
372
<div class="refsect2" title="e_xmlhash_compare ()">
373
<a name="e-xmlhash-compare"></a><h3>e_xmlhash_compare ()</h3>
374
<pre class="programlisting"><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus" title="enum EXmlHashStatus"><span class="returnvalue">EXmlHashStatus</span></a> e_xmlhash_compare (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
375
<em class="parameter"><code>const <span class="type">gchar</span> *key</code></em>,
376
<em class="parameter"><code>const <span class="type">gchar</span> *compare_data</code></em>);</pre>
378
Compares the value with key equal to <em class="parameter"><code>key</code></em> in <em class="parameter"><code>hash</code></em> against
379
<em class="parameter"><code>compare_data</code></em>.
381
<div class="variablelist"><table border="0">
382
<col align="left" valign="top">
385
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
386
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> to compare against.
390
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
391
<td>The key of the hash entry to compare with.
395
<td><p><span class="term"><em class="parameter"><code>compare_data</code></em> :</span></p></td>
396
<td>The data to compare against the hash entry.
400
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
401
<td> E_XMLHASH_STATUS_SAME if the value and <em class="parameter"><code>compare_data</code></em> are
402
equal,E_XMLHASH_STATUS_DIFFERENT if they are different, or
403
E_XMLHASH_STATUS_NOT_FOUND if there is no entry in <em class="parameter"><code>hash</code></em> with
404
its key equal to <em class="parameter"><code>key</code></em>.
411
<div class="refsect2" title="e_xmlhash_foreach_key ()">
412
<a name="e-xmlhash-foreach-key"></a><h3>e_xmlhash_foreach_key ()</h3>
413
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_foreach_key (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
414
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc" title="EXmlHashFunc ()"><span class="type">EXmlHashFunc</span></a> func</code></em>,
415
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
417
Executes <em class="parameter"><code>func</code></em> against each key/value pair in <em class="parameter"><code>hash</code></em>.
419
<div class="variablelist"><table border="0">
420
<col align="left" valign="top">
423
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
424
<td>An <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a>.
428
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
429
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc" title="EXmlHashFunc ()"><span class="type">EXmlHashFunc</span></a> to execute on the data in <em class="parameter"><code>hash</code></em>.
433
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
434
<td>The data to pass to <em class="parameter"><code>func</code></em>.
441
<div class="refsect2" title="e_xmlhash_foreach_key_remove ()">
442
<a name="e-xmlhash-foreach-key-remove"></a><h3>e_xmlhash_foreach_key_remove ()</h3>
443
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_foreach_key_remove (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>,
444
<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHashRemoveFunc" title="EXmlHashRemoveFunc ()"><span class="type">EXmlHashRemoveFunc</span></a> func</code></em>,
445
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
448
<div class="variablelist"><table border="0">
449
<col align="left" valign="top">
452
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
457
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
462
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
470
<div class="refsect2" title="e_xmlhash_write ()">
471
<a name="e-xmlhash-write"></a><h3>e_xmlhash_write ()</h3>
472
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_write (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>);</pre>
474
Writes the XML represented by <em class="parameter"><code>hash</code></em> to the file originally passed
475
to <a class="link" href="libedataserver-e-xml-hash-utils.html#e-xmlhash-new" title="e_xmlhash_new ()"><code class="function">e_xmlhash_new()</code></a>.
477
<div class="variablelist"><table border="0">
478
<col align="left" valign="top">
480
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
481
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> to write.
487
<div class="refsect2" title="e_xmlhash_destroy ()">
488
<a name="e-xmlhash-destroy"></a><h3>e_xmlhash_destroy ()</h3>
489
<pre class="programlisting"><span class="returnvalue">void</span> e_xmlhash_destroy (<em class="parameter"><code><a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> *hash</code></em>);</pre>
491
Frees the memory associated with <em class="parameter"><code>hash</code></em>.
493
<div class="variablelist"><table border="0">
494
<col align="left" valign="top">
496
<td><p><span class="term"><em class="parameter"><code>hash</code></em> :</span></p></td>
497
<td>The <a class="link" href="libedataserver-e-xml-hash-utils.html#EXmlHash" title="EXmlHash"><span class="type">EXmlHash</span></a> to destroy.
506
Generated by GTK-Doc V1.14</div>
b'\\ No newline at end of file'