Searched refs:hooks (Results 1 – 6 of 6) sorted by relevance
150 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() argument161 copy = (unsigned char*)hooks->allocate(length); in cJSON_strdup()171 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks) in cJSON_InitHooks() argument173 if (hooks == NULL) in cJSON_InitHooks()183 if (hooks->malloc_fn != NULL) in cJSON_InitHooks()185 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()189 if (hooks->free_fn != NULL) in cJSON_InitHooks()191 global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()203 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() argument205 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()[all …]
136 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks);
22 The function `mg_set_auth_handler()` hooks an authorization function to an URI to check if a user i…
22 The function `mg_set_request_handler()` hooks a callback function on a URI. That callback function …
67 - Use *callbacks* to add your own hooks.78 - Use constructor *callbacks* to add your own hooks.
108 + debugging info (lua_debug and hooks) moved into lua_state and new API