mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-6402 part 2
This commit is contained in:
@@ -205,9 +205,22 @@ SWITCH_DECLARE(void *) switch_core_hash_find_rdlock(switch_hash_t *hash, const c
|
||||
return val;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_hash_index_t *) switch_core_hash_first(switch_hash_t *hash)
|
||||
SWITCH_DECLARE(switch_bool_t) switch_core_hash_empty(switch_hash_t *hash)
|
||||
{
|
||||
return switch_hashtable_first(hash);
|
||||
switch_hash_index_t *hi = switch_core_hash_first(hash);
|
||||
|
||||
if (hi) {
|
||||
switch_safe_free(hi);
|
||||
return SWITCH_FALSE;
|
||||
}
|
||||
|
||||
return SWITCH_TRUE;
|
||||
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_hash_index_t *) switch_core_hash_first_iter(switch_hash_t *hash, switch_hash_index_t *hi)
|
||||
{
|
||||
return switch_hashtable_first_iter(hash, hi);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_hash_index_t *) switch_core_hash_next(switch_hash_index_t **hi)
|
||||
|
Reference in New Issue
Block a user