FS-6402 part 2

This commit is contained in:
Anthony Minessale
2014-04-02 03:21:29 +05:00
parent 5110ee8008
commit 7151d6acea
47 changed files with 198 additions and 154 deletions
+7 -2
View File
@@ -294,11 +294,16 @@ SWITCH_DECLARE(switch_hashtable_iterator_t *) switch_hashtable_next(switch_hasht
return NULL;
}
SWITCH_DECLARE(switch_hashtable_iterator_t *) switch_hashtable_first(switch_hashtable_t *h)
SWITCH_DECLARE(switch_hashtable_iterator_t *) switch_hashtable_first_iter(switch_hashtable_t *h, switch_hashtable_iterator_t *it)
{
switch_hashtable_iterator_t *iterator;
switch_zmalloc(iterator, sizeof(*iterator));
if (it) {
iterator = it;
} else {
switch_zmalloc(iterator, sizeof(*iterator));
}
switch_assert(iterator);
iterator->pos = 0;