RTS API Documentation
1.10.11
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | cJSON |
struct | cJSON_Hooks |
Macros | |
#define | CJSON_CDECL |
#define | CJSON_STDCALL |
#define | CJSON_PUBLIC(type) type |
#define | CJSON_VERSION_MAJOR 1 |
#define | CJSON_VERSION_MINOR 7 |
#define | CJSON_VERSION_PATCH 12 |
#define | cJSON_Invalid (0) |
#define | cJSON_False (1 << 0) |
#define | cJSON_True (1 << 1) |
#define | cJSON_NULL (1 << 2) |
#define | cJSON_Number (1 << 3) |
#define | cJSON_String (1 << 4) |
#define | cJSON_Array (1 << 5) |
#define | cJSON_Object (1 << 6) |
#define | cJSON_Raw (1 << 7) /* raw json */ |
#define | cJSON_IsReference 256 |
#define | cJSON_StringIsConst 512 |
#define | CJSON_NESTING_LIMIT 1000 |
#define | cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number)) |
#define | cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) |
#define | cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next) |
Typedefs | |
typedef struct cJSON | cJSON |
typedef struct cJSON_Hooks | cJSON_Hooks |
typedef int | cJSON_bool |
Functions | |
CJSON_PUBLIC (const char *) cJSON_Version(void) | |
CJSON_PUBLIC (void) cJSON_InitHooks(cJSON_Hooks *hooks) | |
CJSON_PUBLIC (cJSON *) cJSON_Parse(const char *value) | |
CJSON_PUBLIC (char *) cJSON_Print(const cJSON *item) | |
CJSON_PUBLIC (cJSON_bool) cJSON_PrintPreallocated(cJSON *item | |
CJSON_PUBLIC (double) cJSON_SetNumberHelper(cJSON *object | |
CJSON_PUBLIC (void *) cJSON_malloc(size_t size) | |
Variables | |
const char ** | return_parse_end |
const char cJSON_bool | require_null_terminated |
int | prebuffer |
int cJSON_bool | fmt |
char * | buffer |
char const int | length |
char const int const cJSON_bool | format |
int | index |
const char *const | string |
int | count |
cJSON * | item |
int | which |
int cJSON * | newitem |
cJSON *const cJSON * | replacement |
cJSON_bool | recurse |
const cJSON *const | b |
const cJSON *const const cJSON_bool | case_sensitive |
const char *const | name |
const char *const const cJSON_bool | boolean |
const char *const const double | number |
const char *const const char *const | raw |
#define cJSON_Array (1 << 5) |
Definition at line 87 of file switch_cJSON.h.
Referenced by compare_json(), create_patches(), minify_string(), parse_array(), print_value(), replace_item_in_object(), switch_dial_handle_create_json_obj(), and switch_event_create_json().
#define cJSON_ArrayForEach | ( | element, | |
array | |||
) | for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next) |
Definition at line 267 of file switch_cJSON.h.
Referenced by minify_string(), switch_dial_handle_create_json_obj(), and switch_dial_handle_list_create_json_obj().
#define CJSON_CDECL |
Definition at line 63 of file switch_cJSON.h.
#define cJSON_False (1 << 0) |
Definition at line 82 of file switch_cJSON.h.
Referenced by minify_string(), parse_value(), print_value(), and replace_item_in_object().
#define cJSON_Invalid (0) |
Definition at line 81 of file switch_cJSON.h.
Referenced by add_item_to_object(), apply_patch(), and minify_string().
#define cJSON_IsReference 256 |
Definition at line 91 of file switch_cJSON.h.
Referenced by cJSON_New_Item(), create_reference(), and replace_item_in_object().
#define CJSON_NESTING_LIMIT 1000 |
Definition at line 129 of file switch_cJSON.h.
Referenced by parse_array(), and parse_object().
#define cJSON_NULL (1 << 2) |
Definition at line 84 of file switch_cJSON.h.
Referenced by minify_string(), parse_value(), print_value(), and replace_item_in_object().
#define cJSON_Number (1 << 3) |
Definition at line 85 of file switch_cJSON.h.
Referenced by cJSON_isTrue(), compare_json(), create_patches(), minify_string(), parse_number(), print_value(), and replace_item_in_object().
#define cJSON_Object (1 << 6) |
Definition at line 88 of file switch_cJSON.h.
Referenced by compare_json(), create_patches(), minify_string(), parse_object(), print_value(), replace_item_in_object(), switch_dial_handle_create_json_obj(), and switch_dial_handle_list_create_json_obj().
#define CJSON_PUBLIC | ( | type | ) | type |
Definition at line 69 of file switch_cJSON.h.
#define cJSON_Raw (1 << 7) /* raw json */ |
Definition at line 89 of file switch_cJSON.h.
Referenced by minify_string(), print_value(), and replace_item_in_object().
#define cJSON_SetIntValue | ( | object, | |
number | |||
) | ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number)) |
Definition at line 261 of file switch_cJSON.h.
#define cJSON_SetNumberValue | ( | object, | |
number | |||
) | ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) |
Definition at line 264 of file switch_cJSON.h.
#define CJSON_STDCALL |
Definition at line 64 of file switch_cJSON.h.
#define cJSON_String (1 << 4) |
Definition at line 86 of file switch_cJSON.h.
Referenced by cJSON_GetObjectCstr(), cJSON_isTrue(), compare_json(), create_patches(), minify_string(), parse_string(), print_value(), replace_item_in_object(), switch_dial_handle_create_json_obj(), switch_dial_handle_list_create_json_obj(), and switch_event_create_json().
#define cJSON_StringIsConst 512 |
Definition at line 92 of file switch_cJSON.h.
Referenced by add_item_to_object(), cJSON_New_Item(), and replace_item_in_object().
#define cJSON_True (1 << 1) |
Definition at line 83 of file switch_cJSON.h.
Referenced by cJSON_isTrue(), minify_string(), parse_value(), print_value(), replace_item_in_object(), switch_log_node_dup(), and switch_log_node_to_json().
#define CJSON_VERSION_MAJOR 1 |
Definition at line 74 of file switch_cJSON.h.
Referenced by CJSON_PUBLIC().
#define CJSON_VERSION_MINOR 7 |
Definition at line 75 of file switch_cJSON.h.
Referenced by CJSON_PUBLIC().
#define CJSON_VERSION_PATCH 12 |
Definition at line 76 of file switch_cJSON.h.
Referenced by CJSON_PUBLIC().
typedef int cJSON_bool |
Definition at line 124 of file switch_cJSON.h.
typedef struct cJSON_Hooks cJSON_Hooks |
CJSON_PUBLIC | ( | const char * | ) |
Definition at line 74 of file cJSON.c.
References error::json, and error::position.
Referenced by add_item_to_array(), add_item_to_object(), cJSON_New_Item(), CJSON_PUBLIC(), get_array_item(), get_object_item(), minify_string(), print(), print_object(), and replace_item_in_object().
CJSON_PUBLIC | ( | void | ) |
CJSON_PUBLIC | ( | cJSON * | ) | const |
CJSON_PUBLIC | ( | char * | ) | const |
CJSON_PUBLIC | ( | cJSON_bool | ) |
CJSON_PUBLIC | ( | double | ) |
CJSON_PUBLIC | ( | void * | ) |
Definition at line 2962 of file cJSON.c.
References internal_hooks::allocate(), and CJSON_PUBLIC().
const cJSON* const b |
Definition at line 243 of file switch_cJSON.h.
Referenced by do_swap(), exec_cb(), get_dom(), if(), minify_string(), node_cmp(), read_rtcp_packet(), read_rtp_packet(), replace_item_in_object(), switch_b64_decode(), switch_b64_encode(), switch_chromakey_process(), switch_color_distance(), switch_color_distance_cheap(), switch_color_distance_literal(), switch_color_set_rgb(), switch_core_session_check_incoming_crypto(), switch_digest_string(), switch_img_copy_rect(), switch_ivr_say_ip(), switch_md5_string(), switch_number_cmp(), switch_simple_email(), switch_tolower(), switch_tolower_max(), switch_toupper_max(), switch_xml_decode(), and switch_xml_str2utf8().
const char* const const cJSON_bool boolean |
Definition at line 253 of file switch_cJSON.h.
char* buffer |
Definition at line 153 of file switch_cJSON.h.
Referenced by buffer_skip_whitespace(), CJSON_PUBLIC(), get_prefixed_str(), preprocess_exec(), print(), scv_tag(), skip_utf8_bom(), switch_http_parse_header(), switch_img_data_url(), switch_loadable_module_enumerate_available(), switch_odbc_handle_get_error(), switch_stream_spawn(), and switch_stream_system().
const cJSON* const const cJSON_bool case_sensitive |
Definition at line 243 of file switch_cJSON.h.
Referenced by minify_string().
int count |
Definition at line 204 of file switch_cJSON.h.
Referenced by check_jb_size(), fct_snprintf(), fct_vsnprintf(), get_rtt_payload(), get_rtt_red_seq(), is_silence_frame(), mod_g711_load(), replace_item_in_object(), separate_string_blank_delim(), separate_string_blank_delim_cheap(), separate_string_char_delim(), separate_string_char_delim_cheap(), switch_cache_db_status(), switch_channel_wait_for_state_timeout(), switch_color_distance_multi(), switch_console_save_history(), switch_core_session_ctl(), switch_core_session_private_event_count(), switch_core_session_request_uuid(), switch_core_standard_on_routing(), switch_dir_count(), switch_escape_char(), switch_event_import_xml(), switch_ivr_detect_audio(), switch_ivr_detect_silence(), switch_ivr_record_file_event(), switch_ivr_wait_for_silence(), switch_loadable_module_init(), SWITCH_MODULE_RUNTIME_FUNCTION(), switch_separate_string_string(), switch_u8_strlen(), switch_vad_process(), switch_xml_config_parse(), switch_xml_toxml_buf_ex(), switch_xml_toxml_r(), time_now(), vxprintf(), and win32_init_timers().
int cJSON_bool fmt |
Definition at line 150 of file switch_cJSON.h.
Referenced by CJSON_PUBLIC(), print(), switch_channel_set_timestamps(), switch_img_fit(), switch_xml_err(), and vxprintf().
char const int const cJSON_bool format |
Definition at line 153 of file switch_cJSON.h.
Referenced by main(), print(), switch_core_perform_file_open(), and switch_strftime().
int index |
Definition at line 160 of file switch_cJSON.h.
Referenced by _switch_hashtable_remove(), apply_patch(), create_patches(), detach_path(), get_array_item(), get_item_from_pointer(), hashtable_expand(), switch_channel_add_state_handler(), switch_channel_clear_state_handler(), switch_channel_get_state_handler(), switch_core_add_state_handler(), switch_core_get_state_handler(), switch_core_port_allocator_free_port(), switch_core_port_allocator_request_port(), switch_core_remove_state_handler(), switch_core_session_destroy_state(), switch_core_session_get_private_class(), switch_core_session_get_stream(), switch_core_session_hangup_state(), switch_core_session_reporting_state(), switch_core_session_run(), switch_core_session_set_private_class(), switch_event_base_add_header(), switch_event_launch_dispatch_threads(), switch_hashtable_insert_destructor(), switch_hashtable_search(), switch_img_add_text(), switch_img_txt_handle_render(), switch_perform_substitution(), switch_rtp_add_crypto_key(), switch_xml_config_parse_event(), and teletone_set_tone().
cJSON *const item |
Definition at line 210 of file switch_cJSON.h.
Referenced by add_item_to_array(), add_item_to_object(), cJSON_CreateStringPrintf(), cJSON_New_Item(), CJSON_PUBLIC(), replace_item_in_object(), suffix_object(), switch_event_create_json(), switch_xml_config_cleanup(), and switch_xml_config_parse_event().
char const int length |
Definition at line 153 of file switch_cJSON.h.
Referenced by cJSON_strdup(), cJSONUtils_strdup(), ensure(), pointer_encoded_length(), print_array(), print_number(), print_object(), read_rtp_packet(), switch_odbc_handle_get_error(), and vxprintf().
const char *const name |
Definition at line 250 of file switch_cJSON.h.
Referenced by add_item_to_object(), fct_logger__on_test_skip(), fct_logger__on_test_suite_skip(), fct_standard_logger__on_test_skip(), load_configuration(), mkcert(), preprocess(), send_display(), switch_core_media_crypto_str2type(), switch_core_media_media_params(), switch_core_session_check_incoming_crypto(), switch_core_session_parse_crypto_prefs(), switch_dir_count(), switch_dir_next_file(), switch_event_create_array_pair(), switch_event_create_json(), switch_event_dup_reply(), switch_http_parse_qs(), switch_ivr_eavesdrop_session(), switch_ivr_phrase_macro_event(), switch_ivr_set_json_call_stats(), switch_ivr_set_xml_call_stats(), switch_live_array_parse_json(), switch_load_network_lists(), switch_load_timezones(), switch_loadable_module_get_codecs_sorted(), switch_media_type2str(), switch_odbc_handle_exec_string(), switch_parse_audio_col(), switch_parse_codec_buf(), switch_xml_locate_language(), switch_xml_open_tag(), switch_xml_parse_section_string(), switch_xml_vget(), and tzparse().
const char cJSON * newitem |
Definition at line 230 of file switch_cJSON.h.
Referenced by add_item_to_object(), insert_item_in_array(), and replace_item_in_object().
double number |
Definition at line 254 of file switch_cJSON.h.
Referenced by add_item_to_object(), CJSON_PUBLIC(), parse_number(), send_display(), switch_core_media_filter_sdp(), switch_is_uint_in_range(), and switch_sanitize_number().
int prebuffer |
Definition at line 150 of file switch_cJSON.h.
Referenced by print().
const char* const const char* const raw |
Definition at line 256 of file switch_cJSON.h.
Referenced by add_item_to_object(), and replace_item_in_object().
cJSON_bool recurse |
Definition at line 237 of file switch_cJSON.h.
Referenced by replace_item_in_object().
Definition at line 231 of file switch_cJSON.h.
Referenced by add_item_to_object(), and merge_patch().
const char cJSON_bool require_null_terminated |
Definition at line 143 of file switch_cJSON.h.
const char** return_parse_end |
Definition at line 143 of file switch_cJSON.h.
const char *const const char *const string |
Definition at line 162 of file switch_cJSON.h.
Referenced by add_item_to_object(), cast_away_const(), decode_pointer_inplace(), replace_item_in_object(), switch_channel_queue_dtmf_string(), and switch_core_session_send_dtmf_string().
int which |
Definition at line 222 of file switch_cJSON.h.
Referenced by add_item_to_object().