| Current File : //usr/share/doc/dbus/api/group__DBusHashTable.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>D-Bus: Hash table</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">D-Bus
 <span id="projectnumber">1.8.20</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Hash table</div> </div>
<div class="ingroups"><a class="el" href="group__DBusInternals.html">D-Bus secret internal implementation details</a></div></div><!--header-->
<div class="contents">
<p><a class="el" href="structDBusHashTable.html" title="Internals of DBusHashTable.">DBusHashTable</a> data structure.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structDBusHashIter.html">DBusHashIter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hash iterator object. <a href="structDBusHashIter.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa76f90a33882453d9eadcb270c96df92"></a><!-- doxytag: member="DBusHashTable::KeyCompareFunc" ref="gaa76f90a33882453d9eadcb270c96df92" args=")(const void *key_a, const void *key_b)" -->
typedef int(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gaa76f90a33882453d9eadcb270c96df92">KeyCompareFunc</a> )(const void *key_a, const void *key_b)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Key comparison function. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae11437504d2f1ec62272264214968988"></a><!-- doxytag: member="DBusHashTable::DBusHashTable" ref="gae11437504d2f1ec62272264214968988" args="" -->
typedef struct <a class="el" href="structDBusHashTable.html">DBusHashTable</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gae11437504d2f1ec62272264214968988">DBusHashTable</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Public opaque hash table object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae8ee983d1bea5d9c49dab9714bc91a68"></a><!-- doxytag: member="DBusHashTable::DBusHashIter" ref="gae8ee983d1bea5d9c49dab9714bc91a68" args="" -->
typedef struct <a class="el" href="structDBusHashIter.html">DBusHashIter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gae8ee983d1bea5d9c49dab9714bc91a68">DBusHashIter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Public opaque hash table iterator object. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga175dc6ab841ed32bb6acf6e4c0df36a8"></a><!-- doxytag: member="DBusHashTable::DBusPreallocatedHash" ref="ga175dc6ab841ed32bb6acf6e4c0df36a8" args="" -->
typedef struct <a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A preallocated hash entry. <br/></td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gab0ab9767ffa5b6720a13b3d741630852">DBusHashType</a> { <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e">DBUS_HASH_STRING</a>,
<a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141">DBUS_HASH_INT</a>,
<a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7">DBUS_HASH_UINTPTR</a>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Indicates the type of a key in the hash table. <a href="group__DBusHashTable.html#gab0ab9767ffa5b6720a13b3d741630852">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gac8e434348a354b9606d4c50c127a5eb4">_dbus_hash_table_new</a> (<a class="el" href="group__DBusHashTable.html#gab0ab9767ffa5b6720a13b3d741630852">DBusHashType</a> type, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> key_free_function, <a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> value_free_function)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new hash table. <a href="#gac8e434348a354b9606d4c50c127a5eb4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga4ad4622378885e5d911c26956e174a45">_dbus_hash_table_ref</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Increments the reference count for a hash table. <a href="#ga4ad4622378885e5d911c26956e174a45"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga96b777e00764b44e0f3216fd8478f5a9">_dbus_hash_table_unref</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrements the reference count for a hash table, freeing the hash table if the count reaches zero. <a href="#ga96b777e00764b44e0f3216fd8478f5a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gad169f3790ca67f8a0adafcdc88ef7188">_dbus_hash_table_remove_all</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removed all entries from a hash table. <a href="#gad169f3790ca67f8a0adafcdc88ef7188"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga1b0e6df8a8617ef0f8f25adfba3acc4c">_dbus_hash_iter_init</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, <a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes a hash table iterator. <a href="#ga1b0e6df8a8617ef0f8f25adfba3acc4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga723e61fcc91ca673e90ff872c07ea19c">_dbus_hash_iter_next</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Move the hash iterator forward one step, to the next hash entry. <a href="#ga723e61fcc91ca673e90ff872c07ea19c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga0ef12d773a546f070cff91cbf1e8d16e">_dbus_hash_iter_remove_entry</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the current entry from the hash table. <a href="#ga0ef12d773a546f070cff91cbf1e8d16e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga34bf277ee37f919bd00516b5ae4e12b5">_dbus_hash_iter_get_value</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the value of the current entry. <a href="#ga34bf277ee37f919bd00516b5ae4e12b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga24193343c0948019d4a302fc18bfd5d9">_dbus_hash_iter_set_value</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter, void *value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the value of the current entry. <a href="#ga24193343c0948019d4a302fc18bfd5d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga7a1b9fd35f9f7bdd86f9d71a6379053f">_dbus_hash_iter_get_int_key</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the key for the current entry. <a href="#ga7a1b9fd35f9f7bdd86f9d71a6379053f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uintptr_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gaab14d583840d0a1b5c829d76959dcbf0">_dbus_hash_iter_get_uintptr_key</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the key for the current entry. <a href="#gaab14d583840d0a1b5c829d76959dcbf0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gaa0cff082174b1ab0380902ce4ae43d08">_dbus_hash_iter_get_string_key</a> (<a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the key for the current entry. <a href="#gaa0cff082174b1ab0380902ce4ae43d08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gab156c35d6dd9ff6e408a835db28323fb">_dbus_hash_iter_lookup</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, void *key, <a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> create_if_not_found, <a class="el" href="structDBusHashIter.html">DBusHashIter</a> *iter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A low-level but efficient interface for manipulating the hash table. <a href="#gab156c35d6dd9ff6e408a835db28323fb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gad51eb3fe682721dd4f6a920ca87cb730">_dbus_hash_table_lookup_string</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, const char *key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up the value for a given string in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e" title="Hash keys are strings.">DBUS_HASH_STRING</a>. <a href="#gad51eb3fe682721dd4f6a920ca87cb730"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga36ff49c4c35599e6fcdadc7f6805c49e">_dbus_hash_table_lookup_int</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, int key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up the value for a given integer in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141" title="Hash keys are integers.">DBUS_HASH_INT</a>. <a href="#ga36ff49c4c35599e6fcdadc7f6805c49e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gae0ac411f87a797767f36c6e64fd807b3">_dbus_hash_table_lookup_uintptr</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, uintptr_t key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Looks up the value for a given integer in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7" title="Hash keys are integer capable to hold a pointer.">DBUS_HASH_UINTPTR</a>. <a href="#gae0ac411f87a797767f36c6e64fd807b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga388d50ce1a07bf0790b9f2ecdb08a396">_dbus_hash_table_remove_string</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, const char *key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the hash entry for the given key. <a href="#ga388d50ce1a07bf0790b9f2ecdb08a396"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gacdebe75bd692605a69dc73c15e0eefd0">_dbus_hash_table_remove_int</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, int key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the hash entry for the given key. <a href="#gacdebe75bd692605a69dc73c15e0eefd0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga0ad8fa1108bad2b4bd5b4ce539d32d64">_dbus_hash_table_remove_uintptr</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, uintptr_t key)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the hash entry for the given key. <a href="#ga0ad8fa1108bad2b4bd5b4ce539d32d64"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga43e98a91a11952824c544330e19f6c22">_dbus_hash_table_insert_string</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, char *key, void *value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a hash entry with the given key and value. <a href="#ga43e98a91a11952824c544330e19f6c22"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gaca20a83f3214db08fa34df2c49c8edd5">_dbus_hash_table_insert_int</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, int key, void *value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a hash entry with the given key and value. <a href="#gaca20a83f3214db08fa34df2c49c8edd5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga811d833032ca919a9063ca835482d01a">_dbus_hash_table_insert_uintptr</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, uintptr_t key, void *value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a hash entry with the given key and value. <a href="#ga811d833032ca919a9063ca835482d01a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga7c2fed5599678e550af10eaa7fd5b1d1">_dbus_hash_table_preallocate_entry</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Preallocate an opaque data blob that allows us to insert into the hash table at a later time without allocating any memory. <a href="#ga7c2fed5599678e550af10eaa7fd5b1d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga159dfec03d53e6e2ff485fc83aed2552">_dbus_hash_table_free_preallocated_entry</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, <a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> *preallocated)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Frees an opaque DBusPreallocatedHash that was *not* used in order to insert into the hash table. <a href="#ga159dfec03d53e6e2ff485fc83aed2552"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#ga770a9b786a9594350165b7224bd173ee">_dbus_hash_table_insert_string_preallocated</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table, <a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> *preallocated, char *key, void *value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts a string-keyed entry into the hash table, using a preallocated data block from <a class="el" href="group__DBusHashTable.html#ga7c2fed5599678e550af10eaa7fd5b1d1" title="Preallocate an opaque data blob that allows us to insert into the hash table at a later time without ...">_dbus_hash_table_preallocate_entry()</a>. <a href="#ga770a9b786a9594350165b7224bd173ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__DBusHashTable.html#gad48297fc27442c19a7c4bd4d1ef9ef77">_dbus_hash_table_get_n_entries</a> (<a class="el" href="structDBusHashTable.html">DBusHashTable</a> *table)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of hash entries in a hash table. <a href="#gad48297fc27442c19a7c4bd4d1ef9ef77"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p><a class="el" href="structDBusHashTable.html" title="Internals of DBusHashTable.">DBusHashTable</a> data structure. </p>
<p>Types and functions related to <a class="el" href="structDBusHashTable.html" title="Internals of DBusHashTable.">DBusHashTable</a>. </p>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="gab0ab9767ffa5b6720a13b3d741630852"></a><!-- doxytag: member="dbus-hash.h::DBusHashType" ref="gab0ab9767ffa5b6720a13b3d741630852" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__DBusHashTable.html#gab0ab9767ffa5b6720a13b3d741630852">DBusHashType</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Indicates the type of a key in the hash table. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e"></a><!-- doxytag: member="DBUS_HASH_STRING" ref="ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e" args="" -->DBUS_HASH_STRING</em> </td><td>
<p>Hash keys are strings. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141"></a><!-- doxytag: member="DBUS_HASH_INT" ref="ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141" args="" -->DBUS_HASH_INT</em> </td><td>
<p>Hash keys are integers. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7"></a><!-- doxytag: member="DBUS_HASH_UINTPTR" ref="ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7" args="" -->DBUS_HASH_UINTPTR</em> </td><td>
<p>Hash keys are integer capable to hold a pointer. </p>
</td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8h_source.html#l00067">67</a> of file <a class="el" href="dbus-hash_8h_source.html">dbus-hash.h</a>.</p>
</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga7a1b9fd35f9f7bdd86f9d71a6379053f"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_get_int_key" ref="ga7a1b9fd35f9f7bdd86f9d71a6379053f" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__DBusHashTable.html#ga7a1b9fd35f9f7bdd86f9d71a6379053f">_dbus_hash_iter_get_int_key</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the key for the current entry. </p>
<p>Only works for hash tables of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141" title="Hash keys are integers.">DBUS_HASH_INT</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00659">659</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>.</p>
</div>
</div>
<a class="anchor" id="gaa0cff082174b1ab0380902ce4ae43d08"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_get_string_key" ref="gaa0cff082174b1ab0380902ce4ae43d08" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char * <a class="el" href="group__DBusHashTable.html#gaa0cff082174b1ab0380902ce4ae43d08">_dbus_hash_iter_get_string_key</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the key for the current entry. </p>
<p>Only works for hash tables of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e" title="Hash keys are strings.">DBUS_HASH_STRING</a> </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00696">696</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>.</p>
</div>
</div>
<a class="anchor" id="gaab14d583840d0a1b5c829d76959dcbf0"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_get_uintptr_key" ref="gaab14d583840d0a1b5c829d76959dcbf0" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uintptr_t <a class="el" href="group__DBusHashTable.html#gaab14d583840d0a1b5c829d76959dcbf0">_dbus_hash_iter_get_uintptr_key</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the key for the current entry. </p>
<p>Only works for hash tables of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7" title="Hash keys are integer capable to hold a pointer.">DBUS_HASH_UINTPTR</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00678">678</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>.</p>
</div>
</div>
<a class="anchor" id="ga34bf277ee37f919bd00516b5ae4e12b5"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_get_value" ref="ga34bf277ee37f919bd00516b5ae4e12b5" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * <a class="el" href="group__DBusHashTable.html#ga34bf277ee37f919bd00516b5ae4e12b5">_dbus_hash_iter_get_value</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the value of the current entry. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00613">613</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
</div>
</div>
<a class="anchor" id="ga1b0e6df8a8617ef0f8f25adfba3acc4c"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_init" ref="ga1b0e6df8a8617ef0f8f25adfba3acc4c" args="(DBusHashTable *table, DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga1b0e6df8a8617ef0f8f25adfba3acc4c">_dbus_hash_iter_init</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Initializes a hash table iterator. </p>
<p>To iterate over all entries in a hash table, use the following code (the printf assumes a hash from strings to strings obviously):</p>
<div class="fragment"><pre class="fragment"> <a class="code" href="structDBusHashIter.html" title="Hash iterator object.">DBusHashIter</a> iter;
<a class="code" href="group__DBusHashTable.html#ga1b0e6df8a8617ef0f8f25adfba3acc4c" title="Initializes a hash table iterator.">_dbus_hash_iter_init</a> (table, &iter);
<span class="keywordflow">while</span> (<a class="code" href="group__DBusHashTable.html#ga723e61fcc91ca673e90ff872c07ea19c" title="Move the hash iterator forward one step, to the next hash entry.">_dbus_hash_iter_next</a> (&iter))
{
printf (<span class="stringliteral">"The first key is %s and value is %s\n"</span>,
<a class="code" href="group__DBusHashTable.html#gaa0cff082174b1ab0380902ce4ae43d08" title="Gets the key for the current entry.">_dbus_hash_iter_get_string_key</a> (&iter),
<a class="code" href="group__DBusHashTable.html#ga34bf277ee37f919bd00516b5ae4e12b5" title="Gets the value of the current entry.">_dbus_hash_iter_get_value</a> (&iter));
}
</pre></div><p>The iterator is initialized pointing "one before" the first hash entry. The first call to <a class="el" href="group__DBusHashTable.html#ga723e61fcc91ca673e90ff872c07ea19c" title="Move the hash iterator forward one step, to the next hash entry.">_dbus_hash_iter_next()</a> moves it onto the first valid entry or returns <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if the hash table is empty. Subsequent calls move to the next valid entry or return <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if there are no more entries.</p>
<p>Note that it is guaranteed to be safe to remove a hash entry during iteration, but it is not safe to add a hash entry.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table to iterate over. </td></tr>
<tr><td class="paramname">iter</td><td>the iterator to initialize. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00517">517</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00215">DBusRealHashIter::bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="dbus-hash_8c_source.html#l00182">n_entries</a>, <a class="el" href="dbus-hash_8c_source.html#l00222">DBusRealHashIter::n_entries_on_init</a>, <a class="el" href="dbus-hash_8c_source.html#l00221">DBusRealHashIter::next_bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00220">DBusRealHashIter::next_entry</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>.</p>
<p>Referenced by <a class="el" href="dbus-hash_8c_source.html#l00418">_dbus_hash_table_remove_all()</a>.</p>
</div>
</div>
<a class="anchor" id="gab156c35d6dd9ff6e408a835db28323fb"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_lookup" ref="gab156c35d6dd9ff6e408a835db28323fb" args="(DBusHashTable *table, void *key, dbus_bool_t create_if_not_found, DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#gab156c35d6dd9ff6e408a835db28323fb">_dbus_hash_iter_lookup</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> </td>
<td class="paramname"><em>create_if_not_found</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>A low-level but efficient interface for manipulating the hash table. </p>
<p>It's efficient because you can get, set, and optionally create the hash entry while only running the hash function one time.</p>
<p>Note that while calling <a class="el" href="group__DBusHashTable.html#ga723e61fcc91ca673e90ff872c07ea19c" title="Move the hash iterator forward one step, to the next hash entry.">_dbus_hash_iter_next()</a> on the iterator filled in by this function may work, it's completely undefined which entries are after this iter and which are before it. So it would be silly to iterate using this iterator.</p>
<p>If the hash entry is created, its value will be initialized to all bits zero.</p>
<p><a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> may be returned due to memory allocation failure, or because create_if_not_found was <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> and the entry did not exist.</p>
<p>If create_if_not_found is <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> and the entry is created, the hash table takes ownership of the key that's passed in.</p>
<p>For a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141" title="Hash keys are integers.">DBUS_HASH_INT</a>, cast the int key to the key parameter using #_DBUS_INT_TO_POINTER().</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash key. </td></tr>
<tr><td class="paramname">create_if_not_found</td><td>if <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a>, create the entry if it didn't exist. </td></tr>
<tr><td class="paramname">iter</td><td>the iterator to initialize. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the hash entry now exists (and the iterator is thus valid). </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00740">740</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00215">DBusRealHashIter::bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00171">buckets</a>, <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00182">n_entries</a>, <a class="el" href="dbus-hash_8c_source.html#l00222">DBusRealHashIter::n_entries_on_init</a>, <a class="el" href="dbus-hash_8c_source.html#l00145">DBusHashEntry::next</a>, <a class="el" href="dbus-hash_8c_source.html#l00221">DBusRealHashIter::next_bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00220">DBusRealHashIter::next_entry</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
</div>
</div>
<a class="anchor" id="ga723e61fcc91ca673e90ff872c07ea19c"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_next" ref="ga723e61fcc91ca673e90ff872c07ea19c" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#ga723e61fcc91ca673e90ff872c07ea19c">_dbus_hash_iter_next</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Move the hash iterator forward one step, to the next hash entry. </p>
<p>The documentation for <a class="el" href="group__DBusHashTable.html#ga1b0e6df8a8617ef0f8f25adfba3acc4c" title="Initializes a hash table iterator.">_dbus_hash_iter_init()</a> explains in more detail.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the iterator to move forward. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if there are no more entries to move to. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00543">543</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00215">DBusRealHashIter::bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00171">buckets</a>, <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00179">n_buckets</a>, <a class="el" href="dbus-hash_8c_source.html#l00182">n_entries</a>, <a class="el" href="dbus-hash_8c_source.html#l00222">DBusRealHashIter::n_entries_on_init</a>, <a class="el" href="dbus-hash_8c_source.html#l00145">DBusHashEntry::next</a>, <a class="el" href="dbus-hash_8c_source.html#l00221">DBusRealHashIter::next_bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00220">DBusRealHashIter::next_entry</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-hash_8c_source.html#l00418">_dbus_hash_table_remove_all()</a>.</p>
</div>
</div>
<a class="anchor" id="ga0ef12d773a546f070cff91cbf1e8d16e"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_remove_entry" ref="ga0ef12d773a546f070cff91cbf1e8d16e" args="(DBusHashIter *iter)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga0ef12d773a546f070cff91cbf1e8d16e">_dbus_hash_iter_remove_entry</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removes the current entry from the hash table. </p>
<p>If a key_free_function or value_free_function was provided to <a class="el" href="group__DBusHashTable.html#gac8e434348a354b9606d4c50c127a5eb4" title="Constructs a new hash table.">_dbus_hash_table_new()</a>, frees the key and/or value for this entry.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00592">592</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00215">DBusRealHashIter::bucket</a>, <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>.</p>
<p>Referenced by <a class="el" href="dbus-hash_8c_source.html#l00418">_dbus_hash_table_remove_all()</a>.</p>
</div>
</div>
<a class="anchor" id="ga24193343c0948019d4a302fc18bfd5d9"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_iter_set_value" ref="ga24193343c0948019d4a302fc18bfd5d9" args="(DBusHashIter *iter, void *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga24193343c0948019d4a302fc18bfd5d9">_dbus_hash_iter_set_value</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashIter.html">DBusHashIter</a> * </td>
<td class="paramname"><em>iter</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the value of the current entry. </p>
<p>If the hash table has a value_free_function it will be used to free the previous value. The hash table will own the passed-in value (it will not be copied).</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">iter</td><td>the hash table iterator. </td></tr>
<tr><td class="paramname">value</td><td>the new value. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00636">636</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00219">DBusRealHashIter::entry</a>, <a class="el" href="dbus-hash_8c_source.html#l00204">free_value_function</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00214">DBusRealHashIter::table</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
</div>
</div>
<a class="anchor" id="ga159dfec03d53e6e2ff485fc83aed2552"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_free_preallocated_entry" ref="ga159dfec03d53e6e2ff485fc83aed2552" args="(DBusHashTable *table, DBusPreallocatedHash *preallocated)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga159dfec03d53e6e2ff485fc83aed2552">_dbus_hash_table_free_preallocated_entry</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> * </td>
<td class="paramname"><em>preallocated</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Frees an opaque DBusPreallocatedHash that was *not* used in order to insert into the hash table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table </td></tr>
<tr><td class="paramname">preallocated</td><td>the preallocated data </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01339">1339</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-mempool_8c_source.html#l00347">_dbus_mem_pool_dealloc()</a>, <a class="el" href="dbus-hash_8c_source.html#l00206">entry_pool</a>, and <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>.</p>
</div>
</div>
<a class="anchor" id="gad48297fc27442c19a7c4bd4d1ef9ef77"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_get_n_entries" ref="gad48297fc27442c19a7c4bd4d1ef9ef77" args="(DBusHashTable *table)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int <a class="el" href="group__DBusHashTable.html#gad48297fc27442c19a7c4bd4d1ef9ef77">_dbus_hash_table_get_n_entries</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the number of hash entries in a hash table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of entries in the table. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01397">1397</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00182">n_entries</a>.</p>
</div>
</div>
<a class="anchor" id="gaca20a83f3214db08fa34df2c49c8edd5"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_insert_int" ref="gaca20a83f3214db08fa34df2c49c8edd5" args="(DBusHashTable *table, int key, void *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#gaca20a83f3214db08fa34df2c49c8edd5">_dbus_hash_table_insert_int</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a hash entry with the given key and value. </p>
<p>The key and value are not copied; they are stored in the hash table by reference. If an entry with the given key already exists, the previous key and value are overwritten (and freed if the hash table has a key_free_function and/or value_free_function).</p>
<p>Returns <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if memory for the new hash entry can't be allocated.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash entry key. </td></tr>
<tr><td class="paramname">value</td><td>the hash entry value. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01248">1248</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00070">DBUS_HASH_INT</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00203">free_key_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00204">free_value_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
</div>
</div>
<a class="anchor" id="ga43e98a91a11952824c544330e19f6c22"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_insert_string" ref="ga43e98a91a11952824c544330e19f6c22" args="(DBusHashTable *table, char *key, void *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#ga43e98a91a11952824c544330e19f6c22">_dbus_hash_table_insert_string</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a hash entry with the given key and value. </p>
<p>The key and value are not copied; they are stored in the hash table by reference. If an entry with the given key already exists, the previous key and value are overwritten (and freed if the hash table has a key_free_function and/or value_free_function).</p>
<p>Returns <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if memory for the new hash entry can't be allocated.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash entry key. </td></tr>
<tr><td class="paramname">value</td><td>the hash entry value. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01214">1214</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l01366">_dbus_hash_table_insert_string_preallocated()</a>, <a class="el" href="dbus-hash_8c_source.html#l01322">_dbus_hash_table_preallocate_entry()</a>, <a class="el" href="dbus-hash_8h_source.html#l00069">DBUS_HASH_STRING</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00128">_dbus_user_database_lookup()</a>, and <a class="el" href="dbus-userdb-util_8c_source.html#l00246">_dbus_user_database_lookup_group()</a>.</p>
</div>
</div>
<a class="anchor" id="ga770a9b786a9594350165b7224bd173ee"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_insert_string_preallocated" ref="ga770a9b786a9594350165b7224bd173ee" args="(DBusHashTable *table, DBusPreallocatedHash *preallocated, char *key, void *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga770a9b786a9594350165b7224bd173ee">_dbus_hash_table_insert_string_preallocated</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> * </td>
<td class="paramname"><em>preallocated</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Inserts a string-keyed entry into the hash table, using a preallocated data block from <a class="el" href="group__DBusHashTable.html#ga7c2fed5599678e550af10eaa7fd5b1d1" title="Preallocate an opaque data blob that allows us to insert into the hash table at a later time without ...">_dbus_hash_table_preallocate_entry()</a>. </p>
<p>This function cannot fail due to lack of memory. The DBusPreallocatedHash object is consumed and should not be reused or freed. Otherwise this function works just like <a class="el" href="group__DBusHashTable.html#ga43e98a91a11952824c544330e19f6c22" title="Creates a hash entry with the given key and value.">_dbus_hash_table_insert_string()</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table </td></tr>
<tr><td class="paramname">preallocated</td><td>the preallocated data </td></tr>
<tr><td class="paramname">key</td><td>the hash key </td></tr>
<tr><td class="paramname">value</td><td>the value </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01366">1366</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00069">DBUS_HASH_STRING</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00203">free_key_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00204">free_value_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
<p>Referenced by <a class="el" href="dbus-hash_8c_source.html#l01214">_dbus_hash_table_insert_string()</a>.</p>
</div>
</div>
<a class="anchor" id="ga811d833032ca919a9063ca835482d01a"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_insert_uintptr" ref="ga811d833032ca919a9063ca835482d01a" args="(DBusHashTable *table, uintptr_t key, void *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#ga811d833032ca919a9063ca835482d01a">_dbus_hash_table_insert_uintptr</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uintptr_t </td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>value</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a hash entry with the given key and value. </p>
<p>The key and value are not copied; they are stored in the hash table by reference. If an entry with the given key already exists, the previous key and value are overwritten (and freed if the hash table has a key_free_function and/or value_free_function).</p>
<p>Returns <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1" title="Expands to "0".">FALSE</a> if memory for the new hash entry can't be allocated.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash entry key. </td></tr>
<tr><td class="paramname">value</td><td>the hash entry value. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01289">1289</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00071">DBUS_HASH_UINTPTR</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00203">free_key_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00204">free_value_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00149">DBusHashEntry::key</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00128">_dbus_user_database_lookup()</a>, and <a class="el" href="dbus-userdb-util_8c_source.html#l00246">_dbus_user_database_lookup_group()</a>.</p>
</div>
</div>
<a class="anchor" id="ga36ff49c4c35599e6fcdadc7f6805c49e"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_lookup_int" ref="ga36ff49c4c35599e6fcdadc7f6805c49e" args="(DBusHashTable *table, int key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * <a class="el" href="group__DBusHashTable.html#ga36ff49c4c35599e6fcdadc7f6805c49e">_dbus_hash_table_lookup_int</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Looks up the value for a given integer in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a26446bd9fbb15c6c381b35a810207141" title="Hash keys are integers.">DBUS_HASH_INT</a>. </p>
<p>Returns NULL if the value is not present. (A not-present entry is indistinguishable from an entry with a value of NULL.) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the integer to look up. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the hash entry. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01074">1074</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00070">DBUS_HASH_INT</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l00480">_dbus_connection_queue_received_message_link()</a>, and <a class="el" href="dbus-connection_8c_source.html#l04549">dbus_connection_dispatch()</a>.</p>
</div>
</div>
<a class="anchor" id="gad51eb3fe682721dd4f6a920ca87cb730"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_lookup_string" ref="gad51eb3fe682721dd4f6a920ca87cb730" args="(DBusHashTable *table, const char *key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * <a class="el" href="group__DBusHashTable.html#gad51eb3fe682721dd4f6a920ca87cb730">_dbus_hash_table_lookup_string</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Looks up the value for a given string in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a481fd0166d28da725b3e97f15192434e" title="Hash keys are strings.">DBUS_HASH_STRING</a>. </p>
<p>Returns NULL if the value is not present. (A not-present entry is indistinguishable from an entry with a value of NULL.) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the string to look up. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the hash entry. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01049">1049</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00069">DBUS_HASH_STRING</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00128">_dbus_user_database_lookup()</a>, and <a class="el" href="dbus-userdb-util_8c_source.html#l00246">_dbus_user_database_lookup_group()</a>.</p>
</div>
</div>
<a class="anchor" id="gae0ac411f87a797767f36c6e64fd807b3"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_lookup_uintptr" ref="gae0ac411f87a797767f36c6e64fd807b3" args="(DBusHashTable *table, uintptr_t key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * <a class="el" href="group__DBusHashTable.html#gae0ac411f87a797767f36c6e64fd807b3">_dbus_hash_table_lookup_uintptr</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uintptr_t </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Looks up the value for a given integer in a hash table of type <a class="el" href="group__DBusHashTable.html#ggab0ab9767ffa5b6720a13b3d741630852a477caf35cc3676d6412c9b57f1d0f6c7" title="Hash keys are integer capable to hold a pointer.">DBUS_HASH_UINTPTR</a>. </p>
<p>Returns NULL if the value is not present. (A not-present entry is indistinguishable from an entry with a value of NULL.) </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the integer to look up. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the hash entry. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01099">1099</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00071">DBUS_HASH_UINTPTR</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="dbus-hash_8c_source.html#l00150">DBusHashEntry::value</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00128">_dbus_user_database_lookup()</a>, and <a class="el" href="dbus-userdb-util_8c_source.html#l00246">_dbus_user_database_lookup_group()</a>.</p>
</div>
</div>
<a class="anchor" id="gac8e434348a354b9606d4c50c127a5eb4"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_new" ref="gac8e434348a354b9606d4c50c127a5eb4" args="(DBusHashType type, DBusFreeFunction key_free_function, DBusFreeFunction value_free_function)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * <a class="el" href="group__DBusHashTable.html#gac8e434348a354b9606d4c50c127a5eb4">_dbus_hash_table_new</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__DBusHashTable.html#gab0ab9767ffa5b6720a13b3d741630852">DBusHashType</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> </td>
<td class="paramname"><em>key_free_function</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__DBusMemory.html#ga061bcded226d76c7d7de35beaa165cb5">DBusFreeFunction</a> </td>
<td class="paramname"><em>value_free_function</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new hash table. </p>
<p>Should be freed with <a class="el" href="group__DBusHashTable.html#ga96b777e00764b44e0f3216fd8478f5a9" title="Decrements the reference count for a hash table, freeing the hash table if the count reaches zero...">_dbus_hash_table_unref()</a>. If memory cannot be allocated for the hash table, returns <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">type</td><td>the type of hash key to use. </td></tr>
<tr><td class="paramname">key_free_function</td><td>function to free hash keys. </td></tr>
<tr><td class="paramname">value_free_function</td><td>function to free hash values. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a new <a class="el" href="structDBusHashTable.html" title="Internals of DBusHashTable.">DBusHashTable</a> or <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> if no memory. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00285">285</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-mempool_8c_source.html#l00138">_dbus_mem_pool_new()</a>, <a class="el" href="dbus-hash_8c_source.html#l00171">buckets</a>, <a class="el" href="dbus-memory_8c_source.html#l00701">dbus_free()</a>, <a class="el" href="dbus-hash_8h_source.html#l00070">DBUS_HASH_INT</a>, <a class="el" href="dbus-hash_8h_source.html#l00069">DBUS_HASH_STRING</a>, <a class="el" href="dbus-hash_8h_source.html#l00071">DBUS_HASH_UINTPTR</a>, <a class="el" href="dbus-memory_8h_source.html#l00059">dbus_new0</a>, <a class="el" href="dbus-hash_8c_source.html#l00130">DBUS_SMALL_HASH_TABLE</a>, <a class="el" href="dbus-hash_8c_source.html#l00191">down_shift</a>, <a class="el" href="dbus-hash_8c_source.html#l00206">entry_pool</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00203">free_key_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00204">free_value_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00185">hi_rebuild_size</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="dbus-hash_8c_source.html#l00188">lo_rebuild_size</a>, <a class="el" href="dbus-hash_8c_source.html#l00195">mask</a>, <a class="el" href="dbus-hash_8c_source.html#l00179">n_buckets</a>, <a class="el" href="dbus-hash_8c_source.html#l00182">n_entries</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00104">REBUILD_MULTIPLIER</a>, <a class="el" href="dbus-hash_8c_source.html#l00169">refcount</a>, <a class="el" href="dbus-hash_8c_source.html#l00176">static_buckets</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01249">_dbus_connection_new_for_transport()</a>, and <a class="el" href="dbus-userdb_8c_source.html#l00550">_dbus_user_database_new()</a>.</p>
</div>
</div>
<a class="anchor" id="ga7c2fed5599678e550af10eaa7fd5b1d1"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_preallocate_entry" ref="ga7c2fed5599678e550af10eaa7fd5b1d1" args="(DBusHashTable *table)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusHashTable.html#ga175dc6ab841ed32bb6acf6e4c0df36a8">DBusPreallocatedHash</a> * <a class="el" href="group__DBusHashTable.html#ga7c2fed5599678e550af10eaa7fd5b1d1">_dbus_hash_table_preallocate_entry</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Preallocate an opaque data blob that allows us to insert into the hash table at a later time without allocating any memory. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the preallocated data, or <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="A null pointer, defined appropriately for C or C++.">NULL</a> if no memory </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01322">1322</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>Referenced by <a class="el" href="dbus-hash_8c_source.html#l01214">_dbus_hash_table_insert_string()</a>.</p>
</div>
</div>
<a class="anchor" id="ga4ad4622378885e5d911c26956e174a45"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_ref" ref="ga4ad4622378885e5d911c26956e174a45" args="(DBusHashTable *table)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * <a class="el" href="group__DBusHashTable.html#ga4ad4622378885e5d911c26956e174a45">_dbus_hash_table_ref</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Increments the reference count for a hash table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table to add a reference to. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the hash table. </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00347">347</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00169">refcount</a>.</p>
</div>
</div>
<a class="anchor" id="gad169f3790ca67f8a0adafcdc88ef7188"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_remove_all" ref="gad169f3790ca67f8a0adafcdc88ef7188" args="(DBusHashTable *table)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#gad169f3790ca67f8a0adafcdc88ef7188">_dbus_hash_table_remove_all</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removed all entries from a hash table. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table to remove all entries from. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00418">418</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8c_source.html#l00517">_dbus_hash_iter_init()</a>, <a class="el" href="dbus-hash_8c_source.html#l00543">_dbus_hash_iter_next()</a>, and <a class="el" href="dbus-hash_8c_source.html#l00592">_dbus_hash_iter_remove_entry()</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00593">_dbus_user_database_flush()</a>.</p>
</div>
</div>
<a class="anchor" id="gacdebe75bd692605a69dc73c15e0eefd0"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_remove_int" ref="gacdebe75bd692605a69dc73c15e0eefd0" args="(DBusHashTable *table, int key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#gacdebe75bd692605a69dc73c15e0eefd0">_dbus_hash_table_remove_int</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removes the hash entry for the given key. </p>
<p>If no hash entry for the key exists, does nothing.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash key. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the entry existed </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01151">1151</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00070">DBUS_HASH_INT</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
</div>
</div>
<a class="anchor" id="ga388d50ce1a07bf0790b9f2ecdb08a396"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_remove_string" ref="ga388d50ce1a07bf0790b9f2ecdb08a396" args="(DBusHashTable *table, const char *key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#ga388d50ce1a07bf0790b9f2ecdb08a396">_dbus_hash_table_remove_string</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removes the hash entry for the given key. </p>
<p>If no hash entry for the key exists, does nothing.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash key. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the entry existed </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01123">1123</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00069">DBUS_HASH_STRING</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
</div>
</div>
<a class="anchor" id="ga0ad8fa1108bad2b4bd5b4ce539d32d64"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_remove_uintptr" ref="ga0ad8fa1108bad2b4bd5b4ce539d32d64" args="(DBusHashTable *table, uintptr_t key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349">dbus_bool_t</a> <a class="el" href="group__DBusHashTable.html#ga0ad8fa1108bad2b4bd5b4ce539d32d64">_dbus_hash_table_remove_uintptr</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uintptr_t </td>
<td class="paramname"><em>key</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removes the hash entry for the given key. </p>
<p>If no hash entry for the key exists, does nothing.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table. </td></tr>
<tr><td class="paramname">key</td><td>the hash key. </td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d" title="Expands to "1".">TRUE</a> if the entry existed </dd></dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l01179">1179</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-hash_8h_source.html#l00071">DBUS_HASH_UINTPTR</a>, <a class="el" href="group__DBusMacros.html#gaa93f0eb578d23995850d61f7d61c55c1">FALSE</a>, <a class="el" href="dbus-hash_8c_source.html#l00201">find_function</a>, <a class="el" href="dbus-hash_8c_source.html#l00198">key_type</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, and <a class="el" href="group__DBusMacros.html#gaa8cecfc5c5c054d2875c03e77b7be15d">TRUE</a>.</p>
<p>Referenced by <a class="el" href="dbus-userdb_8c_source.html#l00128">_dbus_user_database_lookup()</a>, and <a class="el" href="dbus-userdb-util_8c_source.html#l00246">_dbus_user_database_lookup_group()</a>.</p>
</div>
</div>
<a class="anchor" id="ga96b777e00764b44e0f3216fd8478f5a9"></a><!-- doxytag: member="dbus-hash.c::_dbus_hash_table_unref" ref="ga96b777e00764b44e0f3216fd8478f5a9" args="(DBusHashTable *table)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="group__DBusHashTable.html#ga96b777e00764b44e0f3216fd8478f5a9">_dbus_hash_table_unref</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structDBusHashTable.html">DBusHashTable</a> * </td>
<td class="paramname"><em>table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Decrements the reference count for a hash table, freeing the hash table if the count reaches zero. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">table</td><td>the hash table to remove a reference from. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="dbus-hash_8c_source.html#l00361">361</a> of file <a class="el" href="dbus-hash_8c_source.html">dbus-hash.c</a>.</p>
<p>References <a class="el" href="dbus-mempool_8c_source.html#l00187">_dbus_mem_pool_free()</a>, <a class="el" href="dbus-hash_8c_source.html#l00171">buckets</a>, <a class="el" href="dbus-memory_8c_source.html#l00701">dbus_free()</a>, <a class="el" href="dbus-hash_8c_source.html#l00206">entry_pool</a>, <a class="el" href="dbus-hash_8c_source.html#l00179">n_buckets</a>, <a class="el" href="dbus-hash_8c_source.html#l00145">DBusHashEntry::next</a>, <a class="el" href="group__DBusMacros.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a>, <a class="el" href="dbus-hash_8c_source.html#l00169">refcount</a>, and <a class="el" href="dbus-hash_8c_source.html#l00176">static_buckets</a>.</p>
<p>Referenced by <a class="el" href="dbus-connection_8c_source.html#l01249">_dbus_connection_new_for_transport()</a>, and <a class="el" href="dbus-userdb_8c_source.html#l00623">_dbus_user_database_unref()</a>.</p>
</div>
</div>
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:32 for D-Bus by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>