summaryrefslogtreecommitdiff
path: root/legacy/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-06-17 09:49:15 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-06-17 09:49:15 +0000
commitc2d99295bd05ebabe3ea3b10a75d49f9e0b23ac3 (patch)
tree4d5f787510896c55bc77f557d23e43e6c0b644c4 /legacy/eina
parentd70d67c288b8c193ac953f6508230e5a1073e56b (diff)
eina: rename eina_hash_free_set as eina_hash_free_cb_set.
SVN revision: 60439
Diffstat (limited to 'legacy/eina')
-rw-r--r--legacy/eina/ChangeLog2
-rw-r--r--legacy/eina/src/include/eina_hash.h3
-rw-r--r--legacy/eina/src/lib/eina_hash.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/legacy/eina/ChangeLog b/legacy/eina/ChangeLog
index 6767ee71dd..a1a8e21dfe 100644
--- a/legacy/eina/ChangeLog
+++ b/legacy/eina/ChangeLog
@@ -108,5 +108,5 @@
108 108
1092011-06-15 Cedric Bail 1092011-06-15 Cedric Bail
110 110
111 * Add eina_hash_free_set to change the free callback during the 111 * Add eina_hash_free_cb_set to change the free callback during the
112 life of an Eina_Hash. 112 life of an Eina_Hash.
diff --git a/legacy/eina/src/include/eina_hash.h b/legacy/eina/src/include/eina_hash.h
index 474580e9c7..46204ba718 100644
--- a/legacy/eina/src/include/eina_hash.h
+++ b/legacy/eina/src/include/eina_hash.h
@@ -270,8 +270,9 @@ EAPI Eina_Hash *eina_hash_new(Eina_Key_Length key_length_cb,
270 * @param data_free_cb The function called on each value when the hash 270 * @param data_free_cb The function called on each value when the hash
271 * table is freed. @c NULL can be passed as callback. 271 * table is freed. @c NULL can be passed as callback.
272 * @since 1.1 272 * @since 1.1
273 * See @ref eina_hash_new.
273 */ 274 */
274EAPI void eina_hash_free_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) EINA_ARG_NONNULL(1); 275EAPI void eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) EINA_ARG_NONNULL(1);
275 276
276/** 277/**
277 * @brief Create a new hash table using the djb2 algorithm. 278 * @brief Create a new hash table using the djb2 algorithm.
diff --git a/legacy/eina/src/lib/eina_hash.c b/legacy/eina/src/lib/eina_hash.c
index 9b237ff96d..5df20aac1c 100644
--- a/legacy/eina/src/lib/eina_hash.c
+++ b/legacy/eina/src/lib/eina_hash.c
@@ -714,7 +714,7 @@ _eina_hash_iterator_free(Eina_Iterator_Hash *it)
714 *============================================================================*/ 714 *============================================================================*/
715 715
716EAPI void 716EAPI void
717eina_hash_free_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb) 717eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb)
718{ 718{
719 EINA_MAGIC_CHECK_HASH(hash); 719 EINA_MAGIC_CHECK_HASH(hash);
720 EINA_SAFETY_ON_NULL_RETURN(hash); 720 EINA_SAFETY_ON_NULL_RETURN(hash);