File: libedataserver-e-xml-hash-utils.html

package info (click to toggle)
evolution-data-server 1.6.3-5etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,384 kB
  • ctags: 43,218
  • sloc: ansic: 319,315; tcl: 30,499; xml: 19,166; sh: 18,776; perl: 11,529; cpp: 8,259; java: 7,653; makefile: 6,448; awk: 1,338; yacc: 1,103; sed: 772; cs: 505; lex: 134; asm: 14
file content (523 lines) | stat: -rw-r--r-- 22,474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>EXMLHash</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="Evolution API Reference: libedataserver, utility library">
<link rel="up" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
<link rel="prev" href="libedataserver-e-url.html" title="EUrl">
<link rel="next" href="libedataserver-md5-utils.html" title="MD5 Utility Functions">
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libedataserver-e-url.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Evolution API Reference: libedataserver, utility library</th>
<td><a accesskey="n" href="libedataserver-md5-utils.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2556607" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2602578" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libedataserver-e-xml-hash-utils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2556607"></a><span class="refentrytitle">EXMLHash</span>
</h2>
<p>EXMLHash &#8212; Functions for manipulating xml as a hash table.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">



enum        <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType">EXmlHashType</a>;
<a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a>* <a href="libedataserver-e-xml-hash-utils.html#e-xml-to-hash">e_xml_to_hash</a>                   (xmlDoc *doc,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType">EXmlHashType</a> type);
xmlDoc*     <a href="libedataserver-e-xml-hash-utils.html#e-xml-from-hash">e_xml_from_hash</a>                 (<a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a> *hash,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType">EXmlHashType</a> type,
                                             const char *root_node);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xml-destroy-hash">e_xml_destroy_hash</a>              (<a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a> *hash);
enum        <a href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus">EXmlHashStatus</a>;
void        (<a href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc">*EXmlHashFunc</a>)                 (const char *key,
                                             const char *value,
                                             <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
typedef     <a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a>;
<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a>*   <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-new">e_xmlhash_new</a>                   (const char *filename);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-add">e_xmlhash_add</a>                   (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key,
                                             const char *data);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-remove">e_xmlhash_remove</a>                (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key);
<a href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus">EXmlHashStatus</a> <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-compare">e_xmlhash_compare</a>            (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key,
                                             const char *compare_data);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-foreach-key">e_xmlhash_foreach_key</a>           (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc">EXmlHashFunc</a> func,
                                             <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-write">e_xmlhash_write</a>                 (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash);
void        <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-destroy">e_xmlhash_destroy</a>               (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2602578"></a><h2>Description</h2>
<p>

</p>
</div>
<div class="refsect1" lang="en">
<a name="id2602594"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2602605"></a><h3>
<a name="EXmlHashType"></a>enum EXmlHashType</h3>
<a class="indexterm" name="id2602617"></a><pre class="programlisting">typedef enum {
	E_XML_HASH_TYPE_OBJECT_UID,
	E_XML_HASH_TYPE_PROPERTY
} EXmlHashType;
</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><a name="E-XML-HASH-TYPE-OBJECT-UID:CAPS"></a><code class="literal">E_XML_HASH_TYPE_OBJECT_UID</code></span></td>
<td> Use the object UID as the hash key.
</td>
</tr>
<tr>
<td><span class="term"><a name="E-XML-HASH-TYPE-PROPERTY:CAPS"></a><code class="literal">E_XML_HASH_TYPE_PROPERTY</code></span></td>
<td> Use the property name as the hash key.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2602684"></a><h3>
<a name="e-xml-to-hash"></a>e_xml_to_hash ()</h3>
<a class="indexterm" name="id2602696"></a><pre class="programlisting"><a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a>* e_xml_to_hash                   (xmlDoc *doc,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType">EXmlHashType</a> type);</pre>
<p>
Creates a <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
><span class="type">GHashTable</span></a> representation of the <span class="type">xmlDoc</span> <em class="parameter"><code>doc</code></em>.
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
indexed in the <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
><span class="type">GHashTable</span></a> by name. If <em class="parameter"><code>type</code></em> is
<a 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
the hash by their UID (other nodes will still be indexed by name).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>doc</code></em>&#160;:</span></td>
<td> The <span class="type">xmlDoc</span> to store in a hash table. 
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
<td> The value type to use as a key in the hash table.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The newly-created <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
><span class="type">GHashTable</span></a> representation of <em class="parameter"><code>doc</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2601791"></a><h3>
<a name="e-xml-from-hash"></a>e_xml_from_hash ()</h3>
<a class="indexterm" name="id2601804"></a><pre class="programlisting">xmlDoc*     e_xml_from_hash                 (<a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a> *hash,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType">EXmlHashType</a> type,
                                             const char *root_node);</pre>
<p>
Uses the key/value pair representation of an XML structure in <em class="parameter"><code>hash</code></em>
to build an equivalent <span class="type">xmlDoc</span>. This is the reverse of
<a href="libedataserver-e-xml-hash-utils.html#e-xml-to-hash"><code class="function">e_xml_to_hash()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
><span class="type">GHashTable</span></a> to extract the XML from.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHashType"><span class="type">EXmlHashType</span></a> used to store the XML.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>root_node</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The <span class="type">xmlDoc</span> created from the data in <em class="parameter"><code>hash</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2601955"></a><h3>
<a name="e-xml-destroy-hash"></a>e_xml_destroy_hash ()</h3>
<a class="indexterm" name="id2601967"></a><pre class="programlisting">void        e_xml_destroy_hash              (<a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
>GHashTable</a> *hash);</pre>
<p>
Frees the memory used by <em class="parameter"><code>hash</code></em> and its contents.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"
><span class="type">GHashTable</span></a> to destroy.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2602030"></a><h3>
<a name="EXmlHashStatus"></a>enum EXmlHashStatus</h3>
<a class="indexterm" name="id2602042"></a><pre class="programlisting">typedef enum {
	E_XMLHASH_STATUS_SAME,
	E_XMLHASH_STATUS_DIFFERENT,
	E_XMLHASH_STATUS_NOT_FOUND
} EXmlHashStatus;
</pre>
<p>
</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><a name="E-XMLHASH-STATUS-SAME:CAPS"></a><code class="literal">E_XMLHASH_STATUS_SAME</code></span></td>
<td> The compared values are the same.
</td>
</tr>
<tr>
<td><span class="term"><a name="E-XMLHASH-STATUS-DIFFERENT:CAPS"></a><code class="literal">E_XMLHASH_STATUS_DIFFERENT</code></span></td>
<td> The compared values are different.
</td>
</tr>
<tr>
<td><span class="term"><a name="E-XMLHASH-STATUS-NOT-FOUND:CAPS"></a><code class="literal">E_XMLHASH_STATUS_NOT_FOUND</code></span></td>
<td> The key to compare against was not found.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606174"></a><h3>
<a name="EXmlHashFunc"></a>EXmlHashFunc ()</h3>
<a class="indexterm" name="id2606184"></a><pre class="programlisting">void        (*EXmlHashFunc)                 (const char *key,
                                             const char *value,
                                             <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606237"></a><h3>
<a name="EXmlHash"></a>EXmlHash</h3>
<a class="indexterm" name="id2606248"></a><pre class="programlisting">typedef struct EXmlHash EXmlHash;
</pre>
<p>
A hash table representation of an XML file.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606265"></a><h3>
<a name="e-xmlhash-new"></a>e_xmlhash_new ()</h3>
<a class="indexterm" name="id2606276"></a><pre class="programlisting"><a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a>*   e_xmlhash_new                   (const char *filename);</pre>
<p>
Creates a new <a href="libedataserver-e-xml-hash-utils.html#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
not already exist, an empty <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> will be created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></td>
<td> The name of an XML file.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> The new <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> structure, or <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if unable to parse
         <em class="parameter"><code>filename</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606372"></a><h3>
<a name="e-xmlhash-add"></a>e_xmlhash_add ()</h3>
<a class="indexterm" name="id2606382"></a><pre class="programlisting">void        e_xmlhash_add                   (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key,
                                             const char *data);</pre>
<p>
Adds a new key/value pair to the <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> <em class="parameter"><code>hash</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> to add an entry to.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td> The key to use for the entry.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td> The value of the new entry.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606483"></a><h3>
<a name="e-xmlhash-remove"></a>e_xmlhash_remove ()</h3>
<a class="indexterm" name="id2606493"></a><pre class="programlisting">void        e_xmlhash_remove                (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key);</pre>
<p>
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.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> to remove an entry from.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td> The key of the entry to remove.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606573"></a><h3>
<a name="e-xmlhash-compare"></a>e_xmlhash_compare ()</h3>
<a class="indexterm" name="id2606584"></a><pre class="programlisting"><a href="libedataserver-e-xml-hash-utils.html#EXmlHashStatus">EXmlHashStatus</a> e_xmlhash_compare            (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             const char *key,
                                             const char *compare_data);</pre>
<p>
Compares the value with key equal to <em class="parameter"><code>key</code></em> in <em class="parameter"><code>hash</code></em> against
<em class="parameter"><code>compare_data</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> to compare against.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td> The key of the hash entry to compare with.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>compare_data</code></em>&#160;:</span></td>
<td> The data to compare against the hash entry.
</td>
</tr>
<tr>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> E_XMLHASH_STATUS_SAME if the value and <em class="parameter"><code>compare_data</code></em> are
         equal,E_XMLHASH_STATUS_DIFFERENT if they are different, or
         E_XMLHASH_STATUS_NOT_FOUND if there is no entry in <em class="parameter"><code>hash</code></em> with 
         its key equal to <em class="parameter"><code>key</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606719"></a><h3>
<a name="e-xmlhash-foreach-key"></a>e_xmlhash_foreach_key ()</h3>
<a class="indexterm" name="id2606729"></a><pre class="programlisting">void        e_xmlhash_foreach_key           (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash,
                                             <a href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc">EXmlHashFunc</a> func,
                                             <a
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre>
<p>
Executes <em class="parameter"><code>func</code></em> against each key/value pair in <em class="parameter"><code>hash</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> An <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a>.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHashFunc"><span class="type">EXmlHashFunc</span></a> to execute on the data in <em class="parameter"><code>hash</code></em>.
</td>
</tr>
<tr>
<td><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td> The data to pass to <em class="parameter"><code>func</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606845"></a><h3>
<a name="e-xmlhash-write"></a>e_xmlhash_write ()</h3>
<a class="indexterm" name="id2606855"></a><pre class="programlisting">void        e_xmlhash_write                 (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash);</pre>
<p>
Writes the XML represented by <em class="parameter"><code>hash</code></em> to the file originally passed
to <a href="libedataserver-e-xml-hash-utils.html#e-xmlhash-new"><code class="function">e_xmlhash_new()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> to write.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2606920"></a><h3>
<a name="e-xmlhash-destroy"></a>e_xmlhash_destroy ()</h3>
<a class="indexterm" name="id2606930"></a><pre class="programlisting">void        e_xmlhash_destroy               (<a href="libedataserver-e-xml-hash-utils.html#EXmlHash">EXmlHash</a> *hash);</pre>
<p>
Frees the memory associated with <em class="parameter"><code>hash</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><span class="term"><em class="parameter"><code>hash</code></em>&#160;:</span></td>
<td> The <a href="libedataserver-e-xml-hash-utils.html#EXmlHash"><span class="type">EXmlHash</span></a> to destroy.
</td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>