Hash Destruction Functions

Functions that destroy hash tables and their contents. More...

Functions

EAPI int ecore_hash_set_free_key (Ecore_Hash *hash, Ecore_Free_Cb function)
 Sets the function to destroy the keys of the given hash.
EAPI int ecore_hash_set_free_value (Ecore_Hash *hash, Ecore_Free_Cb function)
 Sets the function to destroy the values in the given hash.
EAPI void ecore_hash_destroy (Ecore_Hash *hash)
 Frees the hash table and the data contained inside it.
EAPI int ecore_hash_count (Ecore_Hash *hash)
 Counts the number of nodes in a hash table.

Detailed Description

Functions that destroy hash tables and their contents.


Function Documentation

EAPI int ecore_hash_count ( Ecore_Hash *  hash  ) 

Counts the number of nodes in a hash table.

Parameters:
hash The hash table to count current nodes.
Returns:
The number of nodes in the hash.

EAPI void ecore_hash_destroy ( Ecore_Hash *  hash  ) 

Frees the hash table and the data contained inside it.

Parameters:
hash The hash table to destroy.
Returns:
TRUE on success, FALSE on error.

EAPI int ecore_hash_set_free_key ( Ecore_Hash *  hash,
Ecore_Free_Cb  function 
)

Sets the function to destroy the keys of the given hash.

Parameters:
hash The given hash.
function The function used to free the node keys.
Returns:
TRUE on success, FALSE on error.

EAPI int ecore_hash_set_free_value ( Ecore_Hash *  hash,
Ecore_Free_Cb  function 
)

Sets the function to destroy the values in the given hash.

Parameters:
hash The given hash.
function The function that will free the node values.
Returns:
TRUE on success, FALSE on error