Ecore_Data_Hash_ADT_Destruction_Group (3) - Linux Manuals

Ecore_Data_Hash_ADT_Destruction_Group: Functions that destroy hash tables and their contents.

NAME

Hash Destruction Functions - Functions that destroy hash tables and their contents.

Functions


EAPI int ecore_hash_free_key_cb_set (Ecore_Hash *hash, Ecore_Free_Cb function)
Sets the function to destroy the keys of the given hash.
EAPI int ecore_hash_free_value_cb_set (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.

Referenced by ecore_plugin_available_get(), ecore_string_shutdown(), and ecore_x_netwm_shutdown().

EAPI int ecore_hash_free_key_cb_set (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. NULL is a valid value and means that no function will be called.

Returns:

TRUE on success, FALSE on error.

Referenced by ecore_plugin_available_get().

EAPI int ecore_hash_free_value_cb_set (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. NULL is a valid value and means that no function will be called.

Returns:

TRUE on success, FALSE on error

Referenced by ecore_string_init(), and ecore_x_netwm_init().

Author

Generated automatically by Doxygen for Ecore from the source code.