Hash Creation Functions
Functions that create hash tables. More...Functions | |
| EAPI Ecore_Hash * | ecore_hash_new (Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare) |
| Creates and initializes a new hash. | |
| EAPI int | ecore_hash_init (Ecore_Hash *hash, Ecore_Hash_Cb hash_func, Ecore_Compare_Cb compare) |
| Initializes the given hash. | |
Detailed Description
Functions that create hash tables.
Function Documentation
| EAPI int ecore_hash_init | ( | Ecore_Hash * | hash, | |
| Ecore_Hash_Cb | hash_func, | |||
| Ecore_Compare_Cb | compare | |||
| ) |
Initializes the given hash.
- Parameters:
-
hash The given hash. hash_func The function used for hashing node keys. compare The function used for comparing node keys.
- Returns:
TRUEon success,FALSEon an error.
Referenced by ecore_hash_hash_set(), and ecore_hash_new().
| EAPI Ecore_Hash* ecore_hash_new | ( | Ecore_Hash_Cb | hash_func, | |
| Ecore_Compare_Cb | compare | |||
| ) |
Creates and initializes a new hash.
- Parameters:
-
hash_func The function for determining hash position. compare The function for comparing node keys.
- Returns:
NULLon error, a new hash on success.
References ecore_hash_init().
Referenced by ecore_plugin_available_get(), ecore_string_init(), and ecore_x_netwm_init().