| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>prelude-hash: libprelude Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> |
| 7 |
<link rel="home" href="index.html" title="libprelude Reference Manual"> |
| 8 |
<link rel="up" href="ch01.html" title="[Insert title here]"> |
| 9 |
<link rel="prev" href="libprelude-prelude-plugin.html" title="prelude-plugin"> |
| 10 |
<link rel="next" href="libprelude-prelude-failover.html" title="prelude-failover"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.28 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#libprelude-prelude-hash.description" class="shortcut">Description</a></span> |
| 19 |
</td> |
| 20 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 21 |
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 22 |
<td><a accesskey="p" href="libprelude-prelude-plugin.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 23 |
<td><a accesskey="n" href="libprelude-prelude-failover.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 24 |
</tr></table> |
| 25 |
<div class="refentry"> |
| 26 |
<a name="libprelude-prelude-hash"></a><div class="titlepage"></div> |
| 27 |
<div class="refnamediv"><table width="100%"><tr> |
| 28 |
<td valign="top"> |
| 29 |
<h2><span class="refentrytitle"><a name="libprelude-prelude-hash.top_of_page"></a>prelude-hash</span></h2> |
| 30 |
<p>prelude-hash</p> |
| 31 |
</td> |
| 32 |
<td class="gallery_image" valign="top" align="right"></td> |
| 33 |
</tr></table></div> |
| 34 |
<div class="refsect1"> |
| 35 |
<a name="libprelude-prelude-hash.functions"></a><h2>Functions</h2> |
| 36 |
<div class="informaltable"><table width="100%" border="0"> |
| 37 |
<colgroup> |
| 38 |
<col width="150px" class="functions_return"> |
| 39 |
<col class="functions_name"> |
| 40 |
</colgroup> |
| 41 |
<tbody> |
| 42 |
<tr> |
| 43 |
<td class="function_type"> |
| 44 |
<span class="returnvalue">int</span> |
| 45 |
</td> |
| 46 |
<td class="function_name"> |
| 47 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-new" title="prelude_hash_new ()">prelude_hash_new</a> <span class="c_punctuation">()</span> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<td class="function_type"> |
| 52 |
<span class="returnvalue">int</span> |
| 53 |
</td> |
| 54 |
<td class="function_name"> |
| 55 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-new2" title="prelude_hash_new2 ()">prelude_hash_new2</a> <span class="c_punctuation">()</span> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
<tr> |
| 59 |
<td class="function_type"> |
| 60 |
<span class="returnvalue">void</span> |
| 61 |
</td> |
| 62 |
<td class="function_name"> |
| 63 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-destroy" title="prelude_hash_destroy ()">prelude_hash_destroy</a> <span class="c_punctuation">()</span> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
<tr> |
| 67 |
<td class="function_type"> |
| 68 |
<span class="returnvalue">int</span> |
| 69 |
</td> |
| 70 |
<td class="function_name"> |
| 71 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-set" title="prelude_hash_set ()">prelude_hash_set</a> <span class="c_punctuation">()</span> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td class="function_type"> |
| 76 |
<span class="returnvalue">void</span> * |
| 77 |
</td> |
| 78 |
<td class="function_name"> |
| 79 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-get" title="prelude_hash_get ()">prelude_hash_get</a> <span class="c_punctuation">()</span> |
| 80 |
</td> |
| 81 |
</tr> |
| 82 |
<tr> |
| 83 |
<td class="function_type"> |
| 84 |
<span class="returnvalue">int</span> |
| 85 |
</td> |
| 86 |
<td class="function_name"> |
| 87 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-elem-destroy" title="prelude_hash_elem_destroy ()">prelude_hash_elem_destroy</a> <span class="c_punctuation">()</span> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
<tr> |
| 91 |
<td class="function_type"> |
| 92 |
<span class="returnvalue">void</span> |
| 93 |
</td> |
| 94 |
<td class="function_name"> |
| 95 |
<a class="link" href="libprelude-prelude-hash.html#prelude-hash-iterate" title="prelude_hash_iterate ()">prelude_hash_iterate</a> <span class="c_punctuation">()</span> |
| 96 |
</td> |
| 97 |
</tr> |
| 98 |
</tbody> |
| 99 |
</table></div> |
| 100 |
</div> |
| 101 |
<div class="refsect1"> |
| 102 |
<a name="libprelude-prelude-hash.other"></a><h2>Types and Values</h2> |
| 103 |
<div class="informaltable"><table width="100%" border="0"> |
| 104 |
<colgroup> |
| 105 |
<col width="150px" class="name"> |
| 106 |
<col class="description"> |
| 107 |
</colgroup> |
| 108 |
<tbody><tr> |
| 109 |
<td class="typedef_keyword">typedef</td> |
| 110 |
<td class="function_name"><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t">prelude_hash_t</a></td> |
| 111 |
</tr></tbody> |
| 112 |
</table></div> |
| 113 |
</div> |
| 114 |
<div class="refsect1"> |
| 115 |
<a name="libprelude-prelude-hash.description"></a><h2>Description</h2> |
| 116 |
</div> |
| 117 |
<div class="refsect1"> |
| 118 |
<a name="libprelude-prelude-hash.functions_details"></a><h2>Functions</h2> |
| 119 |
<div class="refsect2"> |
| 120 |
<a name="prelude-hash-new"></a><h3>prelude_hash_new ()</h3> |
| 121 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 122 |
prelude_hash_new (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> **hash</code></em>, |
| 123 |
<em class="parameter"><code>unsigned <span class="type">int</span> (*hash_func) (const void *)</code></em>, |
| 124 |
<em class="parameter"><code><span class="type">int</span> (*key_cmp_func) (const void *, const void *)</code></em>, |
| 125 |
<em class="parameter"><code><span class="type">void</span> (*key_destroy_func) (void *)</code></em>, |
| 126 |
<em class="parameter"><code><span class="type">void</span> (*value_destroy_func) (void *)</code></em>);</pre> |
| 127 |
</div> |
| 128 |
<hr> |
| 129 |
<div class="refsect2"> |
| 130 |
<a name="prelude-hash-new2"></a><h3>prelude_hash_new2 ()</h3> |
| 131 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 132 |
prelude_hash_new2 (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> **hash</code></em>, |
| 133 |
<em class="parameter"><code><span class="type">size_t</span> size</code></em>, |
| 134 |
<em class="parameter"><code>unsigned <span class="type">int</span> (*hash_func) (const void *)</code></em>, |
| 135 |
<em class="parameter"><code><span class="type">int</span> (*key_cmp_func) (const void *, const void *)</code></em>, |
| 136 |
<em class="parameter"><code><span class="type">void</span> (*key_destroy_func) (void *)</code></em>, |
| 137 |
<em class="parameter"><code><span class="type">void</span> (*value_destroy_func) (void *)</code></em>);</pre> |
| 138 |
</div> |
| 139 |
<hr> |
| 140 |
<div class="refsect2"> |
| 141 |
<a name="prelude-hash-destroy"></a><h3>prelude_hash_destroy ()</h3> |
| 142 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 143 |
prelude_hash_destroy (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> *hash</code></em>);</pre> |
| 144 |
</div> |
| 145 |
<hr> |
| 146 |
<div class="refsect2"> |
| 147 |
<a name="prelude-hash-set"></a><h3>prelude_hash_set ()</h3> |
| 148 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 149 |
prelude_hash_set (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> *hash</code></em>, |
| 150 |
<em class="parameter"><code><span class="type">void</span> *key</code></em>, |
| 151 |
<em class="parameter"><code><span class="type">void</span> *value</code></em>);</pre> |
| 152 |
</div> |
| 153 |
<hr> |
| 154 |
<div class="refsect2"> |
| 155 |
<a name="prelude-hash-get"></a><h3>prelude_hash_get ()</h3> |
| 156 |
<pre class="programlisting"><span class="returnvalue">void</span> * |
| 157 |
prelude_hash_get (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> *hash</code></em>, |
| 158 |
<em class="parameter"><code>const <span class="type">void</span> *key</code></em>);</pre> |
| 159 |
</div> |
| 160 |
<hr> |
| 161 |
<div class="refsect2"> |
| 162 |
<a name="prelude-hash-elem-destroy"></a><h3>prelude_hash_elem_destroy ()</h3> |
| 163 |
<pre class="programlisting"><span class="returnvalue">int</span> |
| 164 |
prelude_hash_elem_destroy (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> *hash</code></em>, |
| 165 |
<em class="parameter"><code>const <span class="type">void</span> *key</code></em>);</pre> |
| 166 |
</div> |
| 167 |
<hr> |
| 168 |
<div class="refsect2"> |
| 169 |
<a name="prelude-hash-iterate"></a><h3>prelude_hash_iterate ()</h3> |
| 170 |
<pre class="programlisting"><span class="returnvalue">void</span> |
| 171 |
prelude_hash_iterate (<em class="parameter"><code><a class="link" href="libprelude-prelude-hash.html#prelude-hash-t" title="prelude_hash_t"><span class="type">prelude_hash_t</span></a> *hash</code></em>, |
| 172 |
<em class="parameter"><code><span class="type">void</span> (*cb) (void *data)</code></em>);</pre> |
| 173 |
</div> |
| 174 |
</div> |
| 175 |
<div class="refsect1"> |
| 176 |
<a name="libprelude-prelude-hash.other_details"></a><h2>Types and Values</h2> |
| 177 |
<div class="refsect2"> |
| 178 |
<a name="prelude-hash-t"></a><h3>prelude_hash_t</h3> |
| 179 |
<pre class="programlisting">typedef struct prelude_hash prelude_hash_t; |
| 180 |
</pre> |
| 181 |
</div> |
| 182 |
</div> |
| 183 |
</div> |
| 184 |
<div class="footer"> |
| 185 |
<hr>Generated by GTK-Doc V1.28</div> |
| 186 |
</body> |
| 187 |
</html> |