MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_InitHooks

Function cJSON_InitHooks

modules/freeswitch/esl/src/esl_json.c:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75ESL_DECLARE(void)cJSON_InitHooks(cJSON_Hooks* hooks)
76{
77 if (!hooks) { /* Reset hooks */
78 cJSON_malloc = malloc;
79 cJSON_free = free;
80 return;
81 }
82
83 cJSON_malloc = (hooks->malloc_fn)?hooks->malloc_fn:malloc;
84 cJSON_free = (hooks->free_fn)?hooks->free_fn:free;
85}
86
87/* Internal constructor. */
88static cJSON *cJSON_New_Item(void)

Callers 13

_init_mi_sys_mem_hooksFunction · 0.50
_init_mi_shm_mem_hooksFunction · 0.50
_init_mi_pkg_mem_hooksFunction · 0.50
mod_initFunction · 0.50
esl_json.hFile · 0.50
dm_receive_reqFunction · 0.50
dm_receive_msgFunction · 0.50
dm_api_free_replyFunction · 0.50
store_serializeFunction · 0.50
store_free_bufferFunction · 0.50
store_deserializeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected