FreeSWITCH API Documentation
1.7.0
|
Go to the source code of this file.
Data Structures | |
struct | switch_xml_root |
struct | switch_xml_binding |
struct | xml_section_t |
struct | destroy_xml |
Macros | |
#define | SWITCH_XML_WS "\t\r\n " /* whitespace */ |
#define | SWITCH_XML_ERRL 128 /* maximum error string length */ |
#define | XML_INDENT " " |
Typedefs | |
typedef struct switch_xml_root * | switch_xml_root_t |
Variables | |
static switch_bool_t | USE_UTF_8_ENCODING = SWITCH_TRUE |
char * | SWITCH_XML_NIL [] = { NULL } |
static switch_xml_binding_t * | BINDINGS = NULL |
static switch_xml_t | MAIN_XML_ROOT = NULL |
static switch_memory_pool_t * | XML_MEMORY_POOL = NULL |
static switch_thread_rwlock_t * | B_RWLOCK = NULL |
static switch_mutex_t * | XML_LOCK = NULL |
static switch_mutex_t * | CACHE_MUTEX = NULL |
static switch_mutex_t * | REFLOCK = NULL |
static switch_mutex_t * | FILE_LOCK = NULL |
static switch_xml_open_root_function_t | XML_OPEN_ROOT_FUNCTION = (switch_xml_open_root_function_t)__switch_xml_open_root |
static void * | XML_OPEN_ROOT_FUNCTION_USER_DATA = NULL |
static switch_hash_t * | CACHE_HASH = NULL |
static switch_hash_t * | CACHE_EXPIRES_HASH = NULL |
static struct xml_section_t | SECTIONS [] |
static char | not_so_threadsafe_error_buffer [256] = "" |
#define SWITCH_XML_ERRL 128 /* maximum error string length */ |
Definition at line 103 of file switch_xml.c.
Referenced by switch_xml_err().
#define SWITCH_XML_WS "\t\r\n " /* whitespace */ |
Definition at line 102 of file switch_xml.c.
Referenced by switch_xml_internal_dtd(), switch_xml_parse_str(), and switch_xml_proc_inst().
#define XML_INDENT " " |
Definition at line 2503 of file switch_xml.c.
Referenced by switch_xml_toxml_r().
typedef struct switch_xml_root* switch_xml_root_t |
Definition at line 146 of file switch_xml.c.
switch_xml_t __switch_xml_open_root | ( | uint8_t | reload, |
const char ** | err, | ||
void * | user_data | ||
) |
Definition at line 2280 of file switch_xml.c.
References switch_directories::conf_dir, switch_filenames::conf_name, not_so_threadsafe_error_buffer, switch_copy_string(), SWITCH_GLOBAL_dirs, SWITCH_GLOBAL_filenames, SWITCH_PATH_SEPARATOR, switch_snprintf(), switch_xml_error(), switch_xml_free(), switch_xml_parse_file(), switch_xml_root(), switch_xml_set_root(), and zstr.
|
static |
Definition at line 2183 of file switch_xml.c.
References pool, destroy_xml::pool, switch_core_destroy_memory_pool, switch_xml_free(), and destroy_xml::xml.
Referenced by switch_xml_free_in_thread().
|
static |
Definition at line 1869 of file switch_xml.c.
References switch_xml::next, switch_xml_add_child_d, switch_xml_attr(), switch_xml_child(), and switch_xml_set_attr_d.
Referenced by switch_xml_merge_user().
|
static |
Definition at line 1184 of file switch_xml.c.
References buf, ep, switch_core_get_variable_dup(), and switch_find_end_paren().
Referenced by preprocess().
|
static |
Definition at line 1804 of file switch_xml.c.
References switch_event_get_header, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, and switch_xml_find_child_multi().
Referenced by switch_xml_locate_user(), and switch_xml_locate_user_in_domain().
|
static |
Definition at line 1339 of file switch_xml.c.
References buf, cur, expand_vars(), memset(), preprocess_exec(), preprocess_exec_set(), preprocess_glob(), SWITCH_CHANNEL_LOG, switch_core_set_variable(), switch_fp_read_dline(), SWITCH_LOG_ERROR, switch_log_printf(), switch_must_malloc(), switch_must_realloc(), switch_safe_free, and switch_stristr().
Referenced by preprocess_glob(), and switch_xml_parse_file().
|
static |
Definition at line 1232 of file switch_xml.c.
References buf, SWITCH_CHANNEL_LOG, switch_close_extra_files(), switch_fork(), SWITCH_LOG_ERROR, switch_log_printf(), switch_snprintf(), switch_system(), and SWITCH_TRUE.
Referenced by preprocess().
|
static |
Definition at line 108 of file switch_xml.c.
References switch_stream_handle::data, SWITCH_CHANNEL_LOG, switch_core_set_variable(), SWITCH_LOG_ERROR, switch_log_printf(), switch_safe_free, SWITCH_STANDARD_STREAM, switch_stream_system_fork(), and zstr.
Referenced by preprocess().
|
static |
Definition at line 1295 of file switch_xml.c.
References preprocess(), SWITCH_CHANNEL_LOG, switch_is_file_path(), SWITCH_LOG_ERROR, SWITCH_LOG_INFO, switch_log_printf(), switch_mprintf(), switch_must_strdup(), SWITCH_PATH_SEPARATOR, and switch_safe_free.
Referenced by preprocess().
switch_xml_t switch_xml_add_child | ( | switch_xml_t | xml, |
const char * | name, | ||
switch_size_t | off | ||
) |
Definition at line 2852 of file switch_xml.c.
References switch_xml::attr, memset(), switch_xml::name, switch_xml::off, switch_xml::parent, switch_must_malloc(), switch_xml_insert(), SWITCH_XML_NIL, switch_xml::txt, and destroy_xml::xml.
Referenced by switch_xml_open_tag().
|
static |
Definition at line 2401 of file switch_xml.c.
References SWITCH_CHANNEL_LOG, switch_log_printf(), SWITCH_LOG_WARNING, switch_must_realloc(), and SWITCH_XML_BUFSIZE.
Referenced by switch_xml_tohtml(), and switch_xml_toxml_r().
const char* switch_xml_attr | ( | switch_xml_t | xml, |
const char * | attr | ||
) |
Definition at line 434 of file switch_xml.c.
References switch_xml_root::attr, if(), switch_xml::parent, and switch_xml_root::xml.
Referenced by do_merge(), switch_xml_attr_soft(), switch_xml_find_child(), switch_xml_find_child_multi(), switch_xml_locate(), switch_xml_locate_user_merged(), switch_xml_merge_user(), switch_xml_std_datetime_check(), and switch_xml_toxml_r().
const char* switch_xml_attr_soft | ( | switch_xml_t | xml, |
const char * | attr | ||
) |
Definition at line 426 of file switch_xml.c.
References switch_xml_attr().
switch_status_t switch_xml_bind_search_function_ret | ( | switch_xml_search_function_t | function, |
switch_xml_section_t | sections, | ||
void * | user_data, | ||
switch_xml_binding_t ** | ret_binding | ||
) |
Definition at line 302 of file switch_xml.c.
References switch_xml_binding::function, switch_xml_binding::next, switch_xml_binding::sections, switch_core_alloc, SWITCH_STATUS_MEMERR, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_unlock(), switch_thread_rwlock_wrlock(), and switch_xml_binding::user_data.
|
static |
Definition at line 651 of file switch_xml.c.
References switch_xml_root::cur, switch_xml_root::ent, switch_xml::flags, switch_xml::name, switch_must_malloc(), switch_must_realloc(), switch_xml_decode(), switch_xml_set_flag(), SWITCH_XML_TXTM, and switch_xml::txt.
Referenced by switch_xml_parse_str().
switch_xml_t switch_xml_child | ( | switch_xml_t | xml, |
const char * | name | ||
) |
Definition at line 409 of file switch_xml.c.
References switch_xml::child, and while().
Referenced by do_merge(), switch_xml_find_child(), switch_xml_find_child_multi(), switch_xml_locate(), switch_xml_locate_group(), switch_xml_locate_language(), switch_xml_locate_user(), switch_xml_locate_user_in_domain(), and switch_xml_vget().
|
static |
Definition at line 689 of file switch_xml.c.
References switch_xml_root::cur, switch_xml::name, switch_xml::parent, and switch_xml_err().
Referenced by switch_xml_parse_str().
switch_xml_t switch_xml_cut | ( | switch_xml_t | xml | ) |
Definition at line 2942 of file switch_xml.c.
References switch_xml::child, cur, switch_xml::name, switch_xml::next, switch_xml::ordered, switch_xml::parent, switch_xml::sibling, and destroy_xml::xml.
|
static |
Definition at line 538 of file switch_xml.c.
References switch_must_malloc(), and switch_must_realloc().
Referenced by switch_xml_char_content(), switch_xml_internal_dtd(), and switch_xml_parse_str().
|
static |
Definition at line 700 of file switch_xml.c.
Referenced by switch_xml_internal_dtd().
|
static |
Definition at line 510 of file switch_xml.c.
References switch_xml_root::err, switch_xml_root::s, switch_snprintf(), SWITCH_XML_ERRL, and switch_xml_root::xml.
Referenced by switch_xml_close_tag(), switch_xml_internal_dtd(), and switch_xml_parse_str().
const char* switch_xml_error | ( | switch_xml_t | xml | ) |
Definition at line 2786 of file switch_xml.c.
Referenced by __switch_xml_open_root(), and switch_xml_locate().
switch_xml_t switch_xml_find_child | ( | switch_xml_t | node, |
const char * | childname, | ||
const char * | attrname, | ||
const char * | value | ||
) |
Definition at line 334 of file switch_xml.c.
References switch_xml::next, switch_xml_attr(), and switch_xml_child().
Referenced by switch_xml_locate(), switch_xml_locate_group(), and switch_xml_locate_language().
switch_xml_t switch_xml_find_child_multi | ( | switch_xml_t | node, |
const char * | childname, | ||
... | |||
) |
Definition at line 352 of file switch_xml.c.
References switch_xml::next, switch_xml_attr(), and switch_xml_child().
Referenced by find_user_in_tag().
void switch_xml_free | ( | switch_xml_t | xml | ) |
Definition at line 2701 of file switch_xml.c.
References switch_xml_root::attr, switch_xml_root::dynamic, switch_xml_root::e, switch_xml_root::ent, switch_xml_root::m, switch_xml::ordered, switch_xml_root::pi, switch_xml_root::s, SWITCH_CHANNEL_LOG, switch_log_printf(), SWITCH_LOG_WARNING, switch_mutex_lock(), switch_mutex_unlock(), switch_safe_free, switch_test_flag, switch_xml_free_attr(), SWITCH_XML_NAMEM, SWITCH_XML_ROOT, SWITCH_XML_TXTM, switch_xml_root::u, and destroy_xml::xml.
Referenced by __switch_xml_open_root(), destroy_thread(), switch_xml_clear_user_cache(), switch_xml_destroy(), switch_xml_init(), switch_xml_locate(), switch_xml_locate_language(), switch_xml_locate_user(), switch_xml_locate_user_merged(), switch_xml_reload(), switch_xml_set_root(), and switch_xml_user_cache().
|
static |
Definition at line 942 of file switch_xml.c.
References SWITCH_XML_NAMEM, and SWITCH_XML_TXTM.
Referenced by switch_xml_free(), and switch_xml_parse_str().
void switch_xml_free_in_thread | ( | switch_xml_t | xml, |
int | stacksize | ||
) |
Definition at line 2192 of file switch_xml.c.
References destroy_thread(), pool, destroy_xml::pool, switch_core_alloc, switch_core_new_memory_pool, switch_thread_create(), switch_threadattr_create(), switch_threadattr_detach_set(), switch_threadattr_stacksize_set(), thread, and destroy_xml::xml.
switch_xml_t switch_xml_get | ( | switch_xml_t | xml, |
... | |||
) |
Definition at line 480 of file switch_xml.c.
References switch_xml_vget().
switch_xml_section_t switch_xml_get_binding_sections | ( | switch_xml_binding_t * | binding | ) |
Definition at line 292 of file switch_xml.c.
void* switch_xml_get_binding_user_data | ( | switch_xml_binding_t * | binding | ) |
Definition at line 297 of file switch_xml.c.
switch_xml_t switch_xml_idx | ( | switch_xml_t | xml, |
int | idx | ||
) |
Definition at line 418 of file switch_xml.c.
References switch_xml::next.
Referenced by switch_xml_vget().
switch_status_t switch_xml_init | ( | switch_memory_pool_t * | pool, |
const char ** | err | ||
) |
Definition at line 2333 of file switch_xml.c.
References CACHE_EXPIRES_HASH, CACHE_HASH, FALSE, pool, switch_core_hash_init, switch_mutex_init(), SWITCH_MUTEX_NESTED, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_create(), switch_xml_free(), switch_xml_open_root(), and destroy_xml::xml.
switch_xml_t switch_xml_insert | ( | switch_xml_t | xml, |
switch_xml_t | dest, | ||
switch_size_t | off | ||
) |
Definition at line 2811 of file switch_xml.c.
References switch_xml::child, cur, switch_xml::name, switch_xml::next, switch_xml::off, switch_xml::ordered, switch_xml::sibling, and destroy_xml::xml.
Referenced by switch_xml_add_child().
|
static |
Definition at line 771 of file switch_xml.c.
References switch_xml_root::attr, switch_xml_root::ent, switch_xml_root::err, switch_xml_root::standalone, switch_must_malloc(), switch_must_realloc(), switch_xml_decode(), switch_xml_ent_ok(), switch_xml_err(), SWITCH_XML_NIL, switch_xml_proc_inst(), and SWITCH_XML_WS.
Referenced by switch_xml_parse_str().
switch_status_t switch_xml_locate | ( | const char * | section, |
const char * | tag_name, | ||
const char * | key_name, | ||
const char * | key_value, | ||
switch_xml_t * | root, | ||
switch_xml_t * | node, | ||
switch_event_t * | params, | ||
switch_bool_t | clone | ||
) |
Definition at line 1655 of file switch_xml.c.
References switch_xml_binding::function, switch_xml_binding::next, switch_xml_binding::sections, switch_assert, SWITCH_CHANNEL_LOG, SWITCH_FALSE, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_rdlock(), switch_thread_rwlock_unlock(), switch_xml_attr(), switch_xml_child(), switch_xml_error(), switch_xml_find_child(), switch_xml_free(), switch_xml_parse_section_string(), switch_xml_parse_str_dynamic(), switch_xml_root(), switch_xml_toxml(), switch_xml_binding::user_data, and zstr.
Referenced by switch_xml_locate_domain(), switch_xml_locate_language(), and switch_xml_open_cfg().
switch_status_t switch_xml_locate_domain | ( | const char * | domain_name, |
switch_event_t * | params, | ||
switch_xml_t * | root, | ||
switch_xml_t * | domain | ||
) |
Definition at line 1737 of file switch_xml.c.
References switch_assert, switch_event_add_header_string(), switch_event_create, switch_event_destroy(), SWITCH_EVENT_REQUEST_PARAMS, SWITCH_FALSE, SWITCH_STACK_BOTTOM, and switch_xml_locate().
Referenced by switch_xml_locate_group(), and switch_xml_locate_user().
switch_status_t switch_xml_locate_group | ( | const char * | group_name, |
const char * | domain_name, | ||
switch_xml_t * | root, | ||
switch_xml_t * | domain, | ||
switch_xml_t * | group, | ||
switch_event_t * | params | ||
) |
Definition at line 1757 of file switch_xml.c.
References switch_assert, switch_event_add_header_string(), switch_event_create, switch_event_destroy(), SWITCH_EVENT_REQUEST_PARAMS, SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_xml_child(), switch_xml_find_child(), and switch_xml_locate_domain().
switch_status_t switch_xml_locate_user | ( | const char * | key, |
const char * | user_name, | ||
const char * | domain_name, | ||
const char * | ip, | ||
switch_xml_t * | root, | ||
switch_xml_t * | domain, | ||
switch_xml_t * | user, | ||
switch_xml_t * | ingroup, | ||
switch_event_t * | params | ||
) |
Definition at line 2089 of file switch_xml.c.
References find_user_in_tag(), switch_xml::next, switch_assert, switch_event_add_header_string(), switch_event_create, switch_event_destroy(), SWITCH_EVENT_REQUEST_PARAMS, SWITCH_STACK_BOTTOM, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_xml_child(), switch_xml_free(), and switch_xml_locate_domain().
Referenced by switch_xml_locate_user_merged().
|
static |
Definition at line 1970 of file switch_xml.c.
References CACHE_EXPIRES_HASH, CACHE_HASH, SWITCH_CHANNEL_LOG, switch_core_hash_find(), SWITCH_LOG_DEBUG, switch_log_printf(), switch_micro_time_now(), switch_mutex_lock(), switch_mutex_unlock(), switch_snprintf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_xml_dup(), and time_now().
Referenced by switch_xml_locate_user_merged().
switch_status_t switch_xml_locate_user_in_domain | ( | const char * | user_name, |
switch_xml_t | domain, | ||
switch_xml_t * | user, | ||
switch_xml_t * | ingroup | ||
) |
Definition at line 1840 of file switch_xml.c.
References find_user_in_tag(), switch_xml::next, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, and switch_xml_child().
switch_xml_t switch_xml_new | ( | const char * | name | ) |
Definition at line 2794 of file switch_xml.c.
References switch_xml::attr, switch_xml_root::attr, switch_xml_root::cur, switch_xml_root::ent, switch_xml_root::err, memset(), switch_xml::name, switch_xml_root::pi, switch_must_malloc(), switch_xml::txt, and switch_xml_root::xml.
Referenced by switch_xml_parse_str().
switch_xml_t switch_xml_open_cfg | ( | const char * | file_path, |
switch_xml_t * | node, | ||
switch_event_t * | params | ||
) |
Definition at line 2383 of file switch_xml.c.
References SWITCH_FALSE, SWITCH_STATUS_SUCCESS, switch_xml_locate(), and destroy_xml::xml.
switch_xml_t switch_xml_open_root | ( | uint8_t | reload, |
const char ** | err | ||
) |
Definition at line 2256 of file switch_xml.c.
References switch_event_create, switch_event_destroy(), switch_event_fire, SWITCH_EVENT_RELOADXML, switch_mutex_lock(), switch_mutex_unlock(), SWITCH_STATUS_SUCCESS, XML_OPEN_ROOT_FUNCTION, and XML_OPEN_ROOT_FUNCTION_USER_DATA.
Referenced by switch_xml_init(), and switch_xml_reload().
|
static |
Definition at line 631 of file switch_xml.c.
References switch_xml::attr, switch_xml_root::cur, switch_xml::name, xml_section_t::name, switch_xml_add_child(), and switch_xml::txt.
Referenced by switch_xml_parse_str().
switch_xml_t switch_xml_parse_file | ( | const char * | file | ) |
Definition at line 1583 of file switch_xml.c.
References switch_directories::conf_dir, switch_filenames::conf_name, switch_xml::free_path, switch_directories::log_dir, preprocess(), SWITCH_GLOBAL_dirs, SWITCH_GLOBAL_filenames, switch_mprintf(), switch_mutex_lock(), switch_mutex_unlock(), SWITCH_PATH_SEPARATOR, switch_safe_free, and switch_xml_parse_fd().
Referenced by __switch_xml_open_root().
switch_xml_t switch_xml_parse_file_simple | ( | const char * | file | ) |
Definition at line 1556 of file switch_xml.c.
References switch_xml_root::dynamic, SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, switch_log_printf(), switch_must_malloc(), switch_xml_parse_str(), and switch_xml_root::xml.
switch_xml_t switch_xml_parse_fp | ( | FILE * | fp | ) |
Definition at line 1132 of file switch_xml.c.
References switch_xml_root::dynamic, switch_must_malloc(), switch_must_realloc(), SWITCH_XML_BUFSIZE, switch_xml_parse_str(), and switch_xml_root::xml.
switch_xml_section_t switch_xml_parse_section_string | ( | const char * | str | ) |
Definition at line 208 of file switch_xml.c.
References buf, xml_section_t::name, xml_section_t::section, and SWITCH_XML_SECTION_RESULT.
Referenced by switch_xml_locate().
switch_xml_t switch_xml_parse_str | ( | char * | s, |
switch_size_t | len | ||
) |
Definition at line 982 of file switch_xml.c.
References switch_xml_root::attr, switch_xml_root::cur, switch_xml_root::e, switch_xml_root::ent, switch_xml_root::m, switch_xml::name, switch_xml_root::s, switch_must_malloc(), switch_must_realloc(), switch_xml_char_content(), switch_xml_close_tag(), switch_xml_decode(), switch_xml_err(), switch_xml_free_attr(), switch_xml_internal_dtd(), switch_xml_new(), switch_xml_open_tag(), switch_xml_proc_inst(), switch_xml_str2utf8(), SWITCH_XML_TXTM, SWITCH_XML_WS, switch_xml_root::u, and switch_xml_root::xml.
Referenced by switch_xml_parse_fd(), switch_xml_parse_file_simple(), switch_xml_parse_fp(), and switch_xml_parse_str_dynamic().
switch_xml_t switch_xml_parse_str_dynamic | ( | char * | s, |
switch_bool_t | dup | ||
) |
Definition at line 962 of file switch_xml.c.
References switch_xml_root::dynamic, switch_assert, switch_must_strdup(), switch_xml_parse_str(), and switch_xml_root::xml.
Referenced by switch_xml_dup(), and switch_xml_locate().
const char** switch_xml_pi | ( | switch_xml_t | xml, |
const char * | target | ||
) |
Definition at line 492 of file switch_xml.c.
References if(), switch_xml::parent, switch_xml_root::pi, SWITCH_XML_NIL, and switch_xml_root::xml.
|
static |
Definition at line 718 of file switch_xml.c.
References switch_xml::name, switch_xml_root::pi, switch_xml_root::standalone, switch_must_malloc(), switch_must_realloc(), switch_must_strdup(), SWITCH_XML_WS, and switch_xml_root::xml.
Referenced by switch_xml_internal_dtd(), and switch_xml_parse_str().
void switch_xml_set_binding_sections | ( | switch_xml_binding_t * | binding, |
switch_xml_section_t | sections | ||
) |
void switch_xml_set_binding_user_data | ( | switch_xml_binding_t * | binding, |
void * | user_data | ||
) |
|
static |
Definition at line 902 of file switch_xml.c.
References switch_must_malloc(), switch_must_realloc(), and SWITCH_XML_BUFSIZE.
Referenced by switch_xml_parse_str().
char* switch_xml_tohtml | ( | switch_xml_t | xml, |
switch_bool_t | prn_header | ||
) |
Definition at line 2627 of file switch_xml.c.
References switch_must_malloc(), switch_safe_free, switch_xml_ampencode(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf().
char* switch_xml_toxml | ( | switch_xml_t | xml, |
switch_bool_t | prn_header | ||
) |
Definition at line 2616 of file switch_xml.c.
References switch_must_malloc(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf().
Referenced by switch_xml_dup(), and switch_xml_locate().
char* switch_xml_toxml_buf | ( | switch_xml_t | xml, |
char * | buf, | ||
switch_size_t | buflen, | ||
switch_size_t | offset, | ||
switch_bool_t | prn_header | ||
) |
Definition at line 2644 of file switch_xml.c.
References buf, buflen, memset(), switch_xml::parent, switch_must_realloc(), SWITCH_XML_BUFSIZE, switch_xml_toxml_r(), and destroy_xml::xml.
Referenced by switch_xml_tohtml(), switch_xml_toxml(), and switch_xml_toxml_nolock().
char* switch_xml_toxml_nolock | ( | switch_xml_t | xml, |
switch_bool_t | prn_header | ||
) |
Definition at line 2608 of file switch_xml.c.
References switch_must_malloc(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf().
|
static |
Definition at line 2507 of file switch_xml.c.
References switch_xml::attr, switch_xml::child, switch_xml::name, switch_xml::off, switch_xml::ordered, switch_xml::parent, switch_must_realloc(), switch_xml_ampencode(), switch_xml_attr(), SWITCH_XML_BUFSIZE, switch_xml::txt, and XML_INDENT.
Referenced by switch_xml_toxml_buf().
switch_status_t switch_xml_unbind_search_function | ( | switch_xml_binding_t ** | binding | ) |
Definition at line 231 of file switch_xml.c.
References switch_xml_binding::next, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
switch_status_t switch_xml_unbind_search_function_ptr | ( | switch_xml_search_function_t | function | ) |
Definition at line 255 of file switch_xml.c.
References switch_xml_binding::function, switch_xml_binding::next, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_thread_rwlock_unlock(), and switch_thread_rwlock_wrlock().
|
static |
Definition at line 2005 of file switch_xml.c.
References CACHE_EXPIRES_HASH, CACHE_HASH, switch_core_hash_delete(), switch_core_hash_find(), switch_core_hash_insert, switch_must_malloc(), switch_mutex_lock(), switch_mutex_unlock(), switch_safe_free, switch_snprintf(), switch_xml_dup(), and switch_xml_free().
Referenced by switch_xml_locate_user_merged().
|
static |
Definition at line 462 of file switch_xml.c.
References xml_section_t::name, switch_xml_child(), and switch_xml_idx().
Referenced by switch_xml_get().
|
static |
Definition at line 177 of file switch_xml.c.
|
static |
Definition at line 173 of file switch_xml.c.
|
static |
Definition at line 189 of file switch_xml.c.
Referenced by switch_xml_clear_user_cache(), switch_xml_init(), switch_xml_locate_user_cache(), and switch_xml_user_cache().
|
static |
Definition at line 188 of file switch_xml.c.
Referenced by switch_xml_clear_user_cache(), switch_xml_destroy(), switch_xml_init(), switch_xml_locate_user_cache(), and switch_xml_user_cache().
|
static |
Definition at line 179 of file switch_xml.c.
|
static |
Definition at line 181 of file switch_xml.c.
|
static |
Definition at line 174 of file switch_xml.c.
Referenced by switch_xml_destroy(), switch_xml_root(), and switch_xml_set_root().
|
static |
Definition at line 2213 of file switch_xml.c.
Referenced by __switch_xml_open_root().
|
static |
Definition at line 180 of file switch_xml.c.
|
static |
Definition at line 197 of file switch_xml.c.
char* SWITCH_XML_NIL[] = { NULL } |
Definition at line 163 of file switch_xml.c.
Referenced by switch_xml_add_child(), switch_xml_internal_dtd(), and switch_xml_pi().
|
static |
Definition at line 106 of file switch_xml.c.
|
static |
Definition at line 178 of file switch_xml.c.
|
static |
Definition at line 175 of file switch_xml.c.
|
static |
Definition at line 185 of file switch_xml.c.
Referenced by switch_xml_open_root(), and switch_xml_set_open_root_function().
|
static |
Definition at line 186 of file switch_xml.c.
Referenced by switch_xml_open_root(), and switch_xml_set_open_root_function().