Home
last modified time | relevance | path

Searched refs:cJSON (Results 1 – 25 of 37) sorted by relevance

12

/AliOS-Things-master/components/cjson/include/
A DcJSON.h103 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 DcJSON.c204 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 DcJPath.c375 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 DREADME.md6 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 Dcjson_example.c50 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 Dboard_mgr.c99 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 Dboard_mgr.c91 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 Dota_transport_mqtt.c27 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 Daiot_subdev_api.c338 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 Duagent_core.c488 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 Dulog_init.c152 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 Dulog_fs_cfg.c249 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 Dqrcode.c80 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 Dpage_entry.c34 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 Dpage_entry.c31 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 Damp_engine.c48 cJSON *root = NULL; in search_js_app_main_entry()
49 cJSON *item = NULL; in search_js_app_main_entry()
A DMakefile16 ../utils/cJSON \
/AliOS-Things-master/solutions/auto_demo/
A Ddata_model_basic_demo.c141 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 DREADME.md207 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 DMakefile74 obj-y += cJSON/
157 src_obj += cJSON/
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/
A Dmodule_bt_host.c179 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 DMakefile29 ../utils/cJSON \
/AliOS-Things-master/components/py_engine/adapter/
A Dmain.c261 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 Dbe.c124 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 Dapp_message.c35 cJSON *root = NULL, *params = NULL, *url = NULL; in pyamp_update_file()
75 cJSON *root = NULL, *params = NULL, *token = NULL; in pyamptoken_verify()

Completed in 40 milliseconds

12