Home
last modified time | relevance | path

Searched refs:json_data (Results 1 – 7 of 7) sorted by relevance

/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/builtin/
A Dmodule_builtin.c31 void *json_data = NULL; in native_add_global_appconfig() local
47 if ((json_data = aos_calloc(1, global_config_len)) == NULL) in native_add_global_appconfig()
55 strncpy(json_data, GLOBAL_APPCONFIG_STRING_1, global_config_len); in native_add_global_appconfig()
56 aos_read(json_fd, json_data + strlen(GLOBAL_APPCONFIG_STRING_1), len); in native_add_global_appconfig()
57 strcpy(json_data + strlen(GLOBAL_APPCONFIG_STRING_1) + len, GLOBAL_APPCONFIG_STRING_2); in native_add_global_appconfig()
59 JSValue val = JS_Eval(ctx, json_data, strlen(json_data), "appconfig", JS_EVAL_TYPE_GLOBAL); in native_add_global_appconfig()
69 aos_free(json_data); in native_add_global_appconfig()
/AliOS-Things-master/components/amp/main/
A Damp_engine.c50 void *json_data = NULL; in search_js_app_main_entry() local
85 json_data = amp_calloc(1, sizeof(char) * (file_len + 1)); in search_js_app_main_entry()
86 if (NULL == json_data) { in search_js_app_main_entry()
92 aos_read(json_fd, json_data, file_len); in search_js_app_main_entry()
96 root = cJSON_Parse(json_data); in search_js_app_main_entry()
98 amp_free(json_data); in search_js_app_main_entry()
110 amp_free(json_data); in search_js_app_main_entry()
122 amp_free(json_data); in search_js_app_main_entry()
128 amp_free(json_data); in search_js_app_main_entry()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/builtin/
A Dmodule_builtin.c67 void *json_data = NULL; in native_add_global_appconfig() local
85 if ((json_data = aos_calloc(1, global_config_len)) == NULL) in native_add_global_appconfig()
93 strncpy(json_data, GLOBAL_APPCONFIG_STRING_1, global_config_len); in native_add_global_appconfig()
94 aos_read(json_fd, json_data + strlen(GLOBAL_APPCONFIG_STRING_1), len); in native_add_global_appconfig()
95 strcpy(json_data + strlen(GLOBAL_APPCONFIG_STRING_1) + len, GLOBAL_APPCONFIG_STRING_2); in native_add_global_appconfig()
97 if (duk_peval_string(ctx, json_data) != DUK_EXEC_SUCCESS) { in native_add_global_appconfig()
105 aos_free(json_data); in native_add_global_appconfig()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/ui/
A Dpage_entry.c37 void *json_data = NULL; in search_js_page_entry() local
60 json_data = aos_calloc(1, sizeof(char) * (file_len + 1)); in search_js_page_entry()
61 if (NULL == json_data) { in search_js_page_entry()
67 aos_read(json_fd, json_data, file_len); in search_js_page_entry()
71 root = cJSON_Parse(json_data); in search_js_page_entry()
73 aos_free(json_data); in search_js_page_entry()
115 aos_free(json_data); in search_js_page_entry()
/AliOS-Things-master/components/amp/engine/duktape_engine/startup/
A Dpage_entry.c34 void *json_data = NULL; in search_js_page_entry() local
57 json_data = aos_calloc(1, sizeof(char) * (file_len + 1)); in search_js_page_entry()
58 if (NULL == json_data) { in search_js_page_entry()
64 aos_read(json_fd, json_data, file_len); in search_js_page_entry()
68 root = cJSON_Parse(json_data); in search_js_page_entry()
70 aos_free(json_data); in search_js_page_entry()
112 aos_free(json_data); in search_js_page_entry()
/AliOS-Things-master/components/py_engine/modules/driver/
A Dboard_mgr.c645 void *json_data = NULL; in board_get_json_buff() local
667 json_data = aos_calloc(1, sizeof(char) * (len + 1)); in board_get_json_buff()
668 if (NULL == json_data) { in board_get_json_buff()
674 aos_read(json_fd, json_data, len); in board_get_json_buff()
676 return json_data; in board_get_json_buff()
/AliOS-Things-master/components/amp/services/board_mgr/
A Dboard_mgr.c1182 void *json_data = NULL; in board_get_json_buff() local
1199 json_data = amp_calloc(1, sizeof(char) * (len + 1)); in board_get_json_buff()
1200 if (NULL == json_data) in board_get_json_buff()
1208 aos_read(json_fd, json_data, len); in board_get_json_buff()
1211 return json_data; in board_get_json_buff()

Completed in 68 milliseconds