/AliOS-Things-master/components/cjson/include/ |
A D | cJSON.h | 103 typedef struct cJSON struct 106 struct cJSON *next; argument 123 } cJSON; argument 168 CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index); 208 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child); 209 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child); 218 CJSON_PUBLIC(void) cJSON_AddItemToArray(cJSON *array, cJSON *item); 229 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item); 239 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… 282 cJSON *cJSON_GetObjectItemByPath(cJSON *object, const char *path); [all …]
|
/AliOS-Things-master/components/cjson/src/ |
A D | cJSON.c | 204 cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item() 216 cJSON *next = NULL; in cJSON_Delete() 1743 static cJSON* get_array_item(const cJSON *array, size_t index) in get_array_item() 1816 static void suffix_object(cJSON *prev, cJSON *item) in suffix_object() 1844 static cJSON_bool add_item_to_array(cJSON *array, cJSON *item) in add_item_to_array() 1874 CJSON_PUBLIC(void) cJSON_AddItemToArray(cJSON *array, cJSON *item) in cJSON_AddItemToArray() 2071 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) in cJSON_DetachItemViaPointer() 2170 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSO… in cJSON_ReplaceItemViaPointer() 2345 CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) in cJSON_CreateObjectReference() 2356 CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { in cJSON_CreateArrayReference() [all …]
|
A D | cJPath.c | 375 cJSON *cJSON_Path(cJSON *jsroot, const char *jpath) in cJSON_Path() 384 cJSON *jsquery = NULL; in cJSON_Path() 418 cJSON *obj = cJSON_GetArrayItem(jsquery, i); in cJSON_Path() 419 cJSON *qval = cJSON_GetObjectItem(obj, node->query_key); in cJSON_Path()
|
/AliOS-Things-master/components/cjson/ |
A D | README.md | 6 cJSON是符合ANSI C标准的极轻量级JSON解析器。 14 │ ├── cJSON.c # 源文件(必需) 17 │ └── cJSON.h # 包含cJSON API 33 cJSON *cJSON_Parse(const char *value); 41 void cJSON_Delete(cJSON *c); 49 int cJSON_GetArraySize(const cJSON *array); 57 cJSON *cJSON_GetArrayItem(const cJSON *array, int index); 66 cJSON *cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string); 80 cJSON_bool cJSON_IsBool(const cJSON * const item); 88 cJSON_bool cJSON_IsNumber(const cJSON * const item); [all …]
|
/AliOS-Things-master/components/cjson/example/ |
A D | cjson_example.c | 50 cJSON *root = NULL; in cjson_example() 51 const cJSON *resolution = NULL; in cjson_example() 52 const cJSON *resolutions = NULL; in cjson_example() 53 const cJSON *name = NULL; in cjson_example() 72 cJSON *width = cJSON_GetObjectItemCaseSensitive(resolution, "width"); in cjson_example() 73 cJSON *height = cJSON_GetObjectItemCaseSensitive(resolution, "height"); in cjson_example() 86 ALIOS_CLI_CMD_REGISTER(cjson_example, cjson_example, cJSON example)
|
/AliOS-Things-master/components/amp/services/board_mgr/ |
A D | board_mgr.c | 99 cJSON *port = NULL; in board_parse_gpio() 100 cJSON *item = NULL; in board_parse_gpio() 101 cJSON *dir = NULL; in board_parse_gpio() 102 cJSON *pull = NULL; in board_parse_gpio() 103 cJSON *intMode = NULL; in board_parse_gpio() 236 cJSON *port = NULL; in board_parse_uart() 237 cJSON *item = NULL; in board_parse_uart() 238 cJSON *temp = NULL; in board_parse_uart() 389 cJSON *port = NULL; in board_parse_i2c() 390 cJSON *item = NULL; in board_parse_i2c() [all …]
|
/AliOS-Things-master/components/py_engine/modules/driver/ |
A D | board_mgr.c | 91 cJSON *port = NULL; in board_parse_gpio() 92 cJSON *item = NULL; in board_parse_gpio() 93 cJSON *dir = NULL; in board_parse_gpio() 94 cJSON *pull = NULL; in board_parse_gpio() 95 cJSON *intMode = NULL; in board_parse_gpio() 212 cJSON *port = NULL; in board_parse_uart() 213 cJSON *item = NULL; in board_parse_uart() 214 cJSON *temp = NULL; in board_parse_uart() 346 cJSON *port = NULL; in board_parse_i2c() 347 cJSON *item = NULL; in board_parse_i2c() [all …]
|
/AliOS-Things-master/components/ota/ota_agent/transport/ |
A D | ota_transport_mqtt.c | 27 cJSON *root = NULL; in ota_sevice_parse_msg() 36 cJSON *cmd = cJSON_GetObjectItem(root, "cmd"); in ota_sevice_parse_msg() 40 cJSON *message = cJSON_GetObjectItem(root, "message"); in ota_sevice_parse_msg() 49 cJSON *json_obj = cJSON_GetObjectItem(root, "data"); in ota_sevice_parse_msg() 54 cJSON *url = cJSON_GetObjectItem(json_obj, "url"); in ota_sevice_parse_msg() 61 cJSON *submodule = cJSON_GetObjectItem(json_obj, "module"); in ota_sevice_parse_msg() 67 cJSON *version = cJSON_GetObjectItem(json_obj, "version"); in ota_sevice_parse_msg() 83 cJSON *md5 = cJSON_GetObjectItem(json_obj, "sign"); in ota_sevice_parse_msg() 96 cJSON *sha256 = cJSON_GetObjectItem(json_obj, "sign"); in ota_sevice_parse_msg() 114 cJSON *md5 = cJSON_GetObjectItem(json_obj, "md5"); in ota_sevice_parse_msg() [all …]
|
/AliOS-Things-master/components/linksdk/components/subdev/ |
A D | aiot_subdev_api.c | 338 cJSON *param = NULL; in _subdev_topo_add_append_params() 379 cJSON *param = NULL; in _subdev_append_pk_dn_to_params() 402 cJSON *param = NULL; in _subdev_batch_login_append_device_list() 454 cJSON *param = NULL; in _subdev_product_register_append_params() 581 cJSON *root = NULL, *params = NULL; in aiot_subdev_send_topo_add() 643 cJSON *root = NULL, *params = NULL; in aiot_subdev_send_topo_delete() 698 cJSON *root = NULL; in aiot_subdev_send_topo_get() 725 cJSON *root = NULL, *params = NULL, *device_list = NULL; in aiot_subdev_send_batch_login() 797 cJSON *root = NULL, *params = NULL; in aiot_subdev_send_batch_logout() 853 cJSON *root = NULL, *params = NULL; in aiot_subdev_send_sub_register() [all …]
|
/AliOS-Things-master/components/uagent/src/ |
A D | uagent_core.c | 488 cJSON *root = NULL; in uagent_on_recv_handler() 491 cJSON *params = cJSON_GetObjectItem(root, "params"); in uagent_on_recv_handler() 493 cJSON *value_text = cJSON_GetObjectItem(params, "value"); in uagent_on_recv_handler() 495 cJSON *msgid = cJSON_GetObjectItem(value_text, "id"); in uagent_on_recv_handler() 508 cJSON *mod = cJSON_GetObjectItem(value_text, "mod"); in uagent_on_recv_handler() 509 cJSON *func = cJSON_GetObjectItem(value_text, "func"); in uagent_on_recv_handler() 513 cJSON *param = cJSON_GetObjectItem(value_text, "param"); in uagent_on_recv_handler() 593 cJSON *root = NULL; in service_report_func_list() 595 cJSON *mod_obj[UAGENT_MOD_SIZE]; in service_report_func_list() 607 cJSON *arr = NULL, *json = NULL; in service_report_func_list()
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_init.c | 152 cJSON *root = NULL; in on_ulog_handler() 155 cJSON *ulog_cmd = NULL; in on_ulog_handler() 194 cJSON *ulog_idx = cJSON_GetObjectItem(root, "idx"); in on_ulog_handler()
|
A D | ulog_fs_cfg.c | 249 cJSON *ulog_cfg_obj = cJSON_CreateObject(); in cfg_mm_2_file() 273 cJSON *ulog_cfg_obj = cJSON_CreateObject(); in cfg_mm_2_file() 318 cJSON *root = NULL; in parser_cfg_file() 319 cJSON *config_para = NULL; in parser_cfg_file() 320 cJSON *config_node = NULL; in parser_cfg_file()
|
/AliOS-Things-master/components/py_engine/modules/network/ |
A D | qrcode.c | 80 cJSON *ssid_elem, *passwd_elem; in network_qrscan_result_process() 81 cJSON *root = cJSON_Parse(result); in network_qrscan_result_process()
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/ui/ |
A D | page_entry.c | 34 cJSON *root = NULL; in search_js_page_entry() 35 cJSON *item = NULL; in search_js_page_entry() 36 cJSON *temp = NULL; in search_js_page_entry()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/startup/ |
A D | page_entry.c | 31 cJSON *root = NULL; in search_js_page_entry() 32 cJSON *item = NULL; in search_js_page_entry() 33 cJSON *temp = NULL; in search_js_page_entry()
|
/AliOS-Things-master/components/amp/main/ |
A D | amp_engine.c | 48 cJSON *root = NULL; in search_js_app_main_entry() 49 cJSON *item = NULL; in search_js_app_main_entry()
|
A D | Makefile | 16 ../utils/cJSON \
|
/AliOS-Things-master/solutions/auto_demo/ |
A D | data_model_basic_demo.c | 141 cJSON *root = cJSON_Parse(recv->data.property_set.params); in demo_dm_recv_handler() 143 cJSON *value = cJSON_GetObjectItem(root,auto_temp[i]); in demo_dm_recv_handler()
|
A D | README.md | 207 cJSON *root = cJSON_Parse(recv->data.property_set.params); 209 cJSON *value = cJSON_GetObjectItem(root,auto_temp[i]);
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/ |
A D | Makefile | 74 obj-y += cJSON/ 157 src_obj += cJSON/
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | module_bt_host.c | 179 cJSON* service_obj = NULL, *chars_list_obj = NULL, *descr_obj = NULL, *elemet = NULL; in native_bt_host_add_service() 269 cJSON *root = NULL, *arry = NULL, *elemet = NULL; in native_bt_host_update_chars()
|
/AliOS-Things-master/components/amp/services/ |
A D | Makefile | 29 ../utils/cJSON \
|
/AliOS-Things-master/components/py_engine/adapter/ |
A D | main.c | 261 cJSON *root = cJSON_Parse(json_buff); in get_logLevel() 266 cJSON *debug = cJSON_GetObjectItem(root, APP_CONFIG_DEBUG); in get_logLevel()
|
/AliOS-Things-master/components/amp/engine/duktape_engine/ |
A D | be.c | 124 cJSON *json = cJSON_Parse(pkg_data); in resolve_path() 126 cJSON *item_main = cJSON_GetObjectItem(json, "main"); in resolve_path()
|
/AliOS-Things-master/components/py_engine/external/app_mgr/ |
A D | app_message.c | 35 cJSON *root = NULL, *params = NULL, *url = NULL; in pyamp_update_file() 75 cJSON *root = NULL, *params = NULL, *token = NULL; in pyamptoken_verify()
|