From: cedric Date: Fri, 17 Jun 2011 09:49:15 +0000 (+0000) Subject: eina: rename eina_hash_free_set as eina_hash_free_cb_set. X-Git-Tag: 2.0_alpha~69^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e03bcc05d1d002f28ec71e96b6072d260294716;p=framework%2Fuifw%2Feina.git eina: rename eina_hash_free_set as eina_hash_free_cb_set. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@60439 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index 6767ee7..a1a8e21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -108,5 +108,5 @@ 2011-06-15 Cedric Bail - * Add eina_hash_free_set to change the free callback during the + * Add eina_hash_free_cb_set to change the free callback during the life of an Eina_Hash. diff --git a/src/include/eina_hash.h b/src/include/eina_hash.h index 474580e..46204ba 100644 --- a/src/include/eina_hash.h +++ b/src/include/eina_hash.h @@ -270,8 +270,9 @@ EAPI Eina_Hash *eina_hash_new(Eina_Key_Length key_length_cb, * @param data_free_cb The function called on each value when the hash * table is freed. @c NULL can be passed as callback. * @since 1.1 + * See @ref eina_hash_new. */ -EAPI void eina_hash_free_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) EINA_ARG_NONNULL(1); +EAPI void eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) EINA_ARG_NONNULL(1); /** * @brief Create a new hash table using the djb2 algorithm. diff --git a/src/lib/eina_hash.c b/src/lib/eina_hash.c index 9b237ff..5df20aa 100644 --- a/src/lib/eina_hash.c +++ b/src/lib/eina_hash.c @@ -714,7 +714,7 @@ _eina_hash_iterator_free(Eina_Iterator_Hash *it) *============================================================================*/ EAPI void -eina_hash_free_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) +eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) { EINA_MAGIC_CHECK_HASH(hash); EINA_SAFETY_ON_NULL_RETURN(hash);