RTS API Documentation
1.10.11
|
#include <switch.h>
#include <switch_stun.h>
#include <sys/wait.h>
#include <switch_private.h>
#include <glob.h>
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 | |
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] = "" |
Definition at line 104 of file switch_xml.c.
Referenced by switch_xml_err().
#define SWITCH_XML_WS "\t\r\n " /* whitespace */ |
Definition at line 103 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 2619 of file switch_xml.c.
Referenced by switch_xml_toxml_r().
typedef struct switch_xml_root* switch_xml_root_t |
Definition at line 202 of file switch_xml.c.
switch_xml_t __switch_xml_open_root | ( | uint8_t | reload, |
const char ** | err, | ||
void * | user_data | ||
) |
Definition at line 2395 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 2298 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 1977 of file switch_xml.c.
References switch_xml::next, SWITCH_FALSE, SWITCH_TRUE, 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 1269 of file switch_xml.c.
References buf, switch_core_get_variable_dup(), and switch_find_end_paren().
Referenced by preprocess().
|
static |
Definition at line 1906 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 1424 of file switch_xml.c.
References buf, cur, expand_vars(), memset(), name, preprocess_env_set(), preprocess_exec(), preprocess_exec_set(), preprocess_glob(), preprocess_stun_set(), 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_env_set(), preprocess_glob(), and switch_xml_parse_file().
|
static |
Definition at line 182 of file switch_xml.c.
References key, preprocess(), and switch_core_set_variable().
Referenced by preprocess().
|
static |
Definition at line 1317 of file switch_xml.c.
References buf, buffer, 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 106 of file switch_xml.c.
References switch_stream_handle::data, key, SWITCH_CHANNEL_LOG, switch_core_set_variable(), SWITCH_LOG_ERROR, switch_log_printf(), switch_safe_free, SWITCH_STANDARD_STREAM, switch_stream_system(), and zstr.
Referenced by preprocess().
|
static |
Definition at line 1380 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().
|
static |
Definition at line 142 of file switch_xml.c.
References key, pool, SWITCH_CHANNEL_LOG, switch_core_destroy_memory_pool, switch_core_new_memory_pool, switch_core_set_variable(), SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_SUCCESS, switch_stun_ip_lookup(), and zstr.
Referenced by preprocess().
switch_xml_t switch_xml_add_child | ( | switch_xml_t | xml, |
const char * | name, | ||
switch_size_t | off | ||
) |
Definition at line 2966 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_add_child_d(), and switch_xml_open_tag().
switch_xml_t switch_xml_add_child_d | ( | switch_xml_t | xml, |
const char * | name, | ||
switch_size_t | off | ||
) |
Definition at line 2986 of file switch_xml.c.
References switch_xml_add_child(), SWITCH_XML_NAMEM, and switch_xml_set_flag().
Referenced by do_merge().
|
static |
Definition at line 2517 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_ex(), and switch_xml_toxml_r().
const char* switch_xml_attr | ( | switch_xml_t | xml, |
const char * | attr | ||
) |
Definition at line 490 of file switch_xml.c.
References switch_xml::attr, switch_xml_root::attr, if(), switch_xml::name, 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 482 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 358 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 715 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 465 of file switch_xml.c.
References switch_xml::child, switch_xml::name, switch_xml::sibling, 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_ex(), switch_xml_locate_user(), switch_xml_locate_user_in_domain(), and switch_xml_vget().
|
static |
Definition at line 753 of file switch_xml.c.
References switch_xml::close, 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 3100 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 601 of file switch_xml.c.
References b, 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 765 of file switch_xml.c.
Referenced by switch_xml_internal_dtd().
|
static |
Definition at line 573 of file switch_xml.c.
References switch_xml_root::err, fmt, 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 2900 of file switch_xml.c.
References switch_xml::parent.
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 390 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_ex().
switch_xml_t switch_xml_find_child_multi | ( | switch_xml_t | node, |
const char * | childname, | ||
... | |||
) |
Definition at line 408 of file switch_xml.c.
References switch_xml::next, switch_xml_attr(), switch_xml_child(), and value.
Referenced by find_user_in_tag().
void switch_xml_free | ( | switch_xml_t | xml | ) |
Definition at line 2815 of file switch_xml.c.
References switch_xml::attr, switch_xml_root::attr, switch_xml::child, switch_xml_root::dynamic, switch_xml_root::e, switch_xml_root::ent, switch_xml::flags, switch_xml::free_path, switch_xml_root::m, switch_xml::name, switch_xml::ordered, switch_xml::parent, switch_xml_root::pi, switch_xml::refs, 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::txt, 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_ex(), 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 1013 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 2307 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 536 of file switch_xml.c.
References switch_xml_vget().
switch_xml_section_t switch_xml_get_binding_sections | ( | switch_xml_binding_t * | binding | ) |
void* switch_xml_get_binding_user_data | ( | switch_xml_binding_t * | binding | ) |
switch_xml_t switch_xml_idx | ( | switch_xml_t | xml, |
int | idx | ||
) |
Definition at line 474 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 2448 of file switch_xml.c.
References 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 2925 of file switch_xml.c.
References switch_xml::child, cur, switch_xml::name, switch_xml::next, switch_xml::off, switch_xml::ordered, switch_xml::parent, switch_xml::sibling, and destroy_xml::xml.
Referenced by switch_xml_add_child().
|
static |
Definition at line 836 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 1757 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_ex(), 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 1839 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 1859 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_language_ex | ( | switch_xml_t * | root, |
switch_xml_t * | node, | ||
switch_event_t * | params, | ||
switch_xml_t * | language, | ||
switch_xml_t * | phrases, | ||
switch_xml_t * | macros, | ||
const char * | str_language | ||
) |
Definition at line 3299 of file switch_xml.c.
References SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, SWITCH_TRUE, switch_xml_child(), switch_xml_find_child(), switch_xml_free(), and switch_xml_locate().
Referenced by switch_xml_locate_language().
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 2200 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 2082 of file switch_xml.c.
References 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_TIME_T_FMT, 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 1942 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 2908 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 2499 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 2371 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, and XML_OPEN_ROOT_FUNCTION.
Referenced by switch_xml_init(), and switch_xml_reload().
|
static |
Definition at line 694 of file switch_xml.c.
References switch_xml::attr, switch_xml_root::cur, switch_xml::name, name, switch_xml::open, 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 1688 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 1647 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 1208 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 264 of file switch_xml.c.
References buf, 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 1053 of file switch_xml.c.
References switch_xml_root::attr, switch_xml_root::cur, switch_xml_root::e, switch_xml_root::ent, switch_xml::flags, switch_xml_root::m, switch_xml::name, switch_xml_root::s, switch_must_malloc(), switch_must_realloc(), SWITCH_XML_CDATA, 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 1033 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 548 of file switch_xml.c.
References switch_xml::parent, switch_xml_root::pi, SWITCH_XML_NIL, and switch_xml_root::xml.
|
static |
Definition at line 783 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, target, 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 | ||
) |
Definition at line 336 of file switch_xml.c.
References switch_xml_binding::sections, and switch_assert.
void switch_xml_set_binding_user_data | ( | switch_xml_binding_t * | binding, |
void * | user_data | ||
) |
Definition at line 342 of file switch_xml.c.
References switch_assert, and switch_xml_binding::user_data.
|
static |
Definition at line 970 of file switch_xml.c.
References b, switch_must_malloc(), switch_must_realloc(), and SWITCH_XML_BUFSIZE.
Referenced by switch_xml_parse_str().
char* switch_xml_tohtml_ex | ( | switch_xml_t | xml, |
switch_bool_t | prn_header, | ||
switch_bool_t | use_utf8_encoding | ||
) |
Definition at line 2741 of file switch_xml.c.
References switch_must_malloc(), switch_safe_free, switch_xml_ampencode(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf_ex().
char* switch_xml_toxml_buf_ex | ( | switch_xml_t | xml, |
char * | buf, | ||
switch_size_t | buflen, | ||
switch_size_t | offset, | ||
switch_bool_t | prn_header, | ||
switch_bool_t | use_utf8_encoding | ||
) |
Definition at line 2758 of file switch_xml.c.
References switch_xml::attr, buf, buflen, count, memset(), switch_xml::name, switch_xml::parent, switch_must_realloc(), SWITCH_XML_BUFSIZE, switch_xml_toxml_r(), and destroy_xml::xml.
Referenced by switch_xml_tohtml_ex(), switch_xml_toxml_ex(), and switch_xml_toxml_nolock_ex().
char* switch_xml_toxml_ex | ( | switch_xml_t | xml, |
switch_bool_t | prn_header, | ||
switch_bool_t | use_utf8_encoding | ||
) |
Definition at line 2730 of file switch_xml.c.
References switch_must_malloc(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf_ex().
char* switch_xml_toxml_nolock_ex | ( | switch_xml_t | xml, |
switch_bool_t | prn_header, | ||
switch_bool_t | use_utf8_encoding | ||
) |
Definition at line 2723 of file switch_xml.c.
References switch_must_malloc(), SWITCH_XML_BUFSIZE, and switch_xml_toxml_buf_ex().
|
static |
Definition at line 2623 of file switch_xml.c.
References switch_xml::attr, switch_xml::child, count, 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_ex().
switch_status_t switch_xml_unbind_search_function | ( | switch_xml_binding_t ** | binding | ) |
Definition at line 287 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 311 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 2117 of file switch_xml.c.
References switch_core_hash_delete(), switch_core_hash_find(), switch_core_hash_insert, switch_core_hash_insert_alloc, switch_mutex_lock(), switch_mutex_unlock(), switch_safe_free, switch_snprintf(), SWITCH_TIME_T_FMT, switch_xml_dup(), and switch_xml_free().
Referenced by switch_xml_locate_user_merged().
|
static |
Definition at line 518 of file switch_xml.c.
References name, switch_xml_child(), and switch_xml_idx().
Referenced by switch_xml_get().
|
static |
Definition at line 233 of file switch_xml.c.
|
static |
Definition at line 229 of file switch_xml.c.
|
static |
Definition at line 245 of file switch_xml.c.
|
static |
Definition at line 244 of file switch_xml.c.
|
static |
Definition at line 235 of file switch_xml.c.
|
static |
Definition at line 237 of file switch_xml.c.
|
static |
Definition at line 230 of file switch_xml.c.
Referenced by switch_xml_destroy(), switch_xml_root(), and switch_xml_set_root().
|
static |
Definition at line 2328 of file switch_xml.c.
Referenced by __switch_xml_open_root().
|
static |
Definition at line 236 of file switch_xml.c.
|
static |
Definition at line 253 of file switch_xml.c.
char* SWITCH_XML_NIL[] = { NULL } |
Definition at line 219 of file switch_xml.c.
Referenced by switch_xml_add_child(), switch_xml_internal_dtd(), switch_xml_pi(), and switch_xml_set_attr().
|
static |
Definition at line 234 of file switch_xml.c.
|
static |
Definition at line 231 of file switch_xml.c.
|
static |
Definition at line 241 of file switch_xml.c.
Referenced by switch_xml_open_root().
|
static |
Definition at line 242 of file switch_xml.c.