RTS API Documentation
1.10.11
|
#include <switch.h>
#include "private/switch_core_pvt.h"
#include "private/switch_hashtable_private.h"
Go to the source code of this file.
void* switch_core_hash_delete | ( | switch_hash_t * | hash, |
const char * | key | ||
) |
Definition at line 191 of file switch_core_hash.c.
References switch_hashtable_remove().
Referenced by switch_core_hash_delete_locked(), switch_core_hash_delete_multi(), and switch_core_hash_delete_wrlock().
void* switch_core_hash_delete_locked | ( | switch_hash_t * | hash, |
const char * | key, | ||
switch_mutex_t * | mutex | ||
) |
Definition at line 196 of file switch_core_hash.c.
References switch_core_hash_delete(), switch_mutex_lock(), and switch_mutex_unlock().
switch_status_t switch_core_hash_delete_multi | ( | switch_hash_t * | hash, |
switch_hash_delete_callback_t | callback, | ||
void * | pData | ||
) |
Definition at line 230 of file switch_core_hash.c.
References key, switch_event_header::next, switch_assert, switch_core_hash_delete(), switch_core_hash_first, switch_core_hash_next(), switch_core_hash_this(), switch_event_add_header_string(), SWITCH_EVENT_CLONE, switch_event_create_subclass, switch_event_destroy(), SWITCH_STACK_BOTTOM, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, and switch_event_header::value.
void* switch_core_hash_delete_wrlock | ( | switch_hash_t * | hash, |
const char * | key, | ||
switch_thread_rwlock_t * | rwlock | ||
) |
Definition at line 213 of file switch_core_hash.c.
References switch_core_hash_delete(), switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
switch_status_t switch_core_hash_destroy | ( | switch_hash_t ** | hash | ) |
Definition at line 49 of file switch_core_hash.c.
References switch_assert, switch_hashtable_destroy(), and SWITCH_STATUS_SUCCESS.
void* switch_core_hash_find | ( | switch_hash_t * | hash, |
const char * | key | ||
) |
Definition at line 266 of file switch_core_hash.c.
References switch_hashtable_search().
Referenced by switch_core_hash_find_locked(), and switch_core_hash_find_rdlock().
void* switch_core_hash_find_locked | ( | switch_hash_t * | hash, |
const char * | key, | ||
switch_mutex_t * | mutex | ||
) |
Definition at line 271 of file switch_core_hash.c.
References switch_core_hash_find(), switch_mutex_lock(), and switch_mutex_unlock().
void* switch_core_hash_find_rdlock | ( | switch_hash_t * | hash, |
const char * | key, | ||
switch_thread_rwlock_t * | rwlock | ||
) |
Definition at line 289 of file switch_core_hash.c.
References switch_core_hash_find(), switch_thread_rwlock_rdlock(), and switch_thread_rwlock_unlock().
switch_hash_index_t* switch_core_hash_first_iter | ( | switch_hash_t * | hash, |
switch_hash_index_t * | hi | ||
) |
Definition at line 319 of file switch_core_hash.c.
References switch_hashtable_first_iter().
switch_status_t switch_core_hash_init_case | ( | switch_hash_t ** | hash, |
switch_bool_t | case_sensitive | ||
) |
Definition at line 39 of file switch_core_hash.c.
References switch_create_hashtable(), switch_hash_default(), switch_hash_default_ci(), switch_hash_equalkeys(), and switch_hash_equalkeys_ci().
switch_status_t switch_core_hash_insert_destructor | ( | switch_hash_t * | hash, |
const char * | key, | ||
const void * | data, | ||
hashtable_destructor_t | destructor | ||
) |
Definition at line 144 of file switch_core_hash.c.
References HASHTABLE_DUP_CHECK, HASHTABLE_FLAG_FREE_KEY, switch_hashtable_insert_destructor(), switch_safe_free, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_hash_insert_dup_destructor | ( | switch_hash_t * | hash, |
const char * | key, | ||
const char * | str, | ||
hashtable_destructor_t | destructor | ||
) |
Definition at line 127 of file switch_core_hash.c.
References HASHTABLE_DUP_CHECK, HASHTABLE_FLAG_FREE_KEY, switch_hashtable_insert_destructor(), switch_safe_free, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
switch_status_t switch_core_hash_insert_locked | ( | switch_hash_t * | hash, |
const char * | key, | ||
const void * | data, | ||
switch_mutex_t * | mutex | ||
) |
Definition at line 157 of file switch_core_hash.c.
References switch_core_hash_insert, switch_mutex_lock(), switch_mutex_unlock(), and SWITCH_STATUS_FALSE.
switch_hash_index_t* switch_core_hash_next | ( | switch_hash_index_t ** | hi | ) |
Definition at line 324 of file switch_core_hash.c.
References switch_hashtable_next().
Referenced by switch_core_hash_delete_multi().
void switch_core_hash_this | ( | switch_hash_index_t * | hi, |
const void ** | key, | ||
switch_ssize_t * | klen, | ||
void ** | val | ||
) |
Definition at line 329 of file switch_core_hash.c.
References switch_hashtable_this().
Referenced by switch_core_hash_delete_multi().