Home
last modified time | relevance | path

Searched refs:sysdep (Results 1 – 25 of 43) sorted by relevance

12

/AliOS-Things-master/components/linksdk/components/ota/
A Daiot_ota_api.c81 ota_handle->sysdep = sysdep; in aiot_ota_init()
108 sysdep = ota_handle->sysdep; in aiot_ota_deinit()
129 sysdep = ota_handle->sysdep; in aiot_ota_setopt()
180 download_handle->sysdep = sysdep; in aiot_download_init()
352 sysdep = ota_handle->sysdep; in aiot_ota_report_version()
395 sysdep = ota_handle->sysdep; in aiot_ota_report_version_ext()
418 sysdep = ota_handle->sysdep; in aiot_ota_query_firmware()
450 sysdep = download_handle->sysdep; in aiot_download_report_progress()
486 sysdep = download_handle->sysdep; in aiot_download_recv()
670 sysdep = ota_handle->sysdep; in _ota_mqtt_process()
[all …]
/AliOS-Things-master/components/linksdk/components/dynreg-mqtt/
A Daiot_dynregmq_api.c119 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_dynregmq_init() local
121 sysdep = aiot_sysdep_get_portfile(); in aiot_dynregmq_init()
122 if (sysdep == NULL) { in aiot_dynregmq_init()
132 dynregmq_handle->sysdep = sysdep; in aiot_dynregmq_init()
248 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_dynregmq_deinit() local
255 sysdep = dynregmq_handle->sysdep; in aiot_dynregmq_deinit()
281 sysdep->core_sysdep_free(dynregmq_handle->host); in aiot_dynregmq_deinit()
297 sysdep->core_sysdep_free(dynregmq_handle->cred); in aiot_dynregmq_deinit()
306 sysdep->core_sysdep_free(dynregmq_handle); in aiot_dynregmq_deinit()
436 dynregmq_handle->sysdep->core_sysdep_free(auth_clientid); in aiot_dynregmq_send_request()
[all …]
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_http.c155 http_handle->sysdep->core_sysdep_free(combine_header); in _core_http_send_header()
163 aiot_sysdep_portfile_t *sysdep = NULL; in core_http_init() local
165 sysdep = aiot_sysdep_get_portfile(); in core_http_init()
166 if (sysdep == NULL) { in core_http_init()
176 http_handle->sysdep = sysdep; in core_http_init()
398 http_handle->sysdep->core_sysdep_free(pair_key); in _core_http_recv_header_pair()
410 http_handle->sysdep->core_sysdep_free(pair_key); in _core_http_recv_header_pair()
411 http_handle->sysdep->core_sysdep_free(pair_value); in _core_http_recv_header_pair()
512 http_handle->sysdep->core_sysdep_free(line); in _core_http_recv_header()
564 http_handle->sysdep->core_sysdep_free(buffer); in _core_http_recv_body()
[all …]
A Dcore_auth.c15 …res = core_sprintf(sysdep, &tmp_psk_id, "%s|%s|%s&%s|%s", psk_id_src, sizeof(psk_id_src)/sizeof(ch… in core_auth_tls_psk()
22 sysdep->core_sysdep_free(tmp_psk_id); in core_auth_tls_psk()
30 sysdep->core_sysdep_free(psk_plain_text); in core_auth_tls_psk()
35 int32_t core_auth_mqtt_username(aiot_sysdep_portfile_t *sysdep, char **dest, char *product_key, cha… in core_auth_mqtt_username() argument
39 return core_sprintf(sysdep, dest, "%s&%s", src, sizeof(src)/sizeof(char *), module_name); in core_auth_mqtt_username()
60 *dest = sysdep->core_sysdep_malloc(65, module_name); in core_auth_mqtt_password()
62 sysdep->core_sysdep_free(plain_text); in core_auth_mqtt_password()
70 sysdep->core_sysdep_free(plain_text); in core_auth_mqtt_password()
96 …res = core_sprintf(sysdep, &plain_text, "clientId%s.%sdeviceName%sproductKey%s", sign_ele, 4, modu… in core_auth_http_body()
104 sysdep->core_sysdep_free(plain_text); in core_auth_http_body()
[all …]
A Dcore_global.c13 int32_t core_global_init(aiot_sysdep_portfile_t *sysdep) in core_global_init() argument
22 g_core_global.mutex = sysdep->core_sysdep_mutex_init(); in core_global_init()
28 int32_t core_global_alink_id_next(aiot_sysdep_portfile_t *sysdep, int32_t *alink_id) in core_global_alink_id_next() argument
31 sysdep->core_sysdep_mutex_lock(g_core_global.mutex); in core_global_alink_id_next()
37 sysdep->core_sysdep_mutex_unlock(g_core_global.mutex); in core_global_alink_id_next()
46 sysdep->core_sysdep_mutex_lock(g_core_global.mutex); in core_global_set_mqtt_backup_ip()
49 sysdep->core_sysdep_mutex_unlock(g_core_global.mutex); in core_global_set_mqtt_backup_ip()
56 sysdep->core_sysdep_mutex_lock(g_core_global.mutex); in core_global_get_mqtt_backup_ip()
58 sysdep->core_sysdep_mutex_unlock(g_core_global.mutex); in core_global_get_mqtt_backup_ip()
63 int32_t core_global_deinit(aiot_sysdep_portfile_t *sysdep) in core_global_deinit() argument
[all …]
A Dcore_log.c23 uint64_t timenow = sysdep->core_sysdep_time(); in _core_log_get_timestamp()
64 sysdep->core_sysdep_free(time); in _core_log_append_date()
72 if (sysdep == NULL) { in _core_log_append_prefix()
76 timenow = _core_log_get_timestamp(sysdep); in _core_log_append_prefix()
109 _core_log_append_prefix(sysdep, code, buffer); in _core_log()
166 return _core_log_get_timestamp(sysdep); in core_log_get_timestamp()
180 _core_log_append_prefix(sysdep, code, buffer); in core_log()
198 _core_log(sysdep, code, buffer, fmt, datas, 1); in core_log1()
214 _core_log(sysdep, code, buffer, fmt, datas, 2); in core_log2()
230 _core_log(sysdep, code, buffer, fmt, datas, 3); in core_log3()
[all …]
A Dcore_log.h24 void core_log_set_timestamp(aiot_sysdep_portfile_t *sysdep, uint64_t timestamp);
25 uint64_t core_log_get_timestamp(aiot_sysdep_portfile_t *sysdep);
26 void core_log(aiot_sysdep_portfile_t *sysdep, int32_t code, char *data);
27 void core_log1(aiot_sysdep_portfile_t *sysdep, int32_t code, char *fmt, void *data);
28 void core_log2(aiot_sysdep_portfile_t *sysdep, int32_t code, char *fmt, void *data1, void *data2);
29 void core_log3(aiot_sysdep_portfile_t *sysdep, int32_t code, char *fmt, void *data1, void *data2, v…
30 void core_log4(aiot_sysdep_portfile_t *sysdep, int32_t code, char *fmt, void *data1, void *data2, v…
32 void _core_log_append_date(aiot_sysdep_portfile_t *sysdep, uint64_t timestamp, char *buffer);
A Dcore_global.h14 int32_t core_global_init(aiot_sysdep_portfile_t *sysdep);
15 int32_t core_global_alink_id_next(aiot_sysdep_portfile_t *sysdep, int32_t *alink_id);
16 int32_t core_global_set_mqtt_backup_ip(aiot_sysdep_portfile_t *sysdep, char ip[16]);
17 int32_t core_global_get_mqtt_backup_ip(aiot_sysdep_portfile_t *sysdep, char ip[16]);
18 int32_t core_global_deinit(aiot_sysdep_portfile_t *sysdep);
A Dcore_auth.h17 int32_t core_auth_tls_psk(aiot_sysdep_portfile_t *sysdep, char **psk_id, char psk[65], char *produc…
18 int32_t core_auth_mqtt_username(aiot_sysdep_portfile_t *sysdep, char **dest, char *product_key, cha…
19 int32_t core_auth_mqtt_password(aiot_sysdep_portfile_t *sysdep, char **dest, char *product_key, cha…
20 int32_t core_auth_mqtt_clientid(aiot_sysdep_portfile_t *sysdep, char **dest, char *product_key, cha…
21 int32_t core_auth_http_body(aiot_sysdep_portfile_t *sysdep, char **dest, char *product_key, char *d…
A Dcore_string.c152 int32_t core_strdup(aiot_sysdep_portfile_t *sysdep, char **dest, char *src, char *module_name) in core_strdup() argument
155 sysdep->core_sysdep_free(*dest); in core_strdup()
159 *dest = sysdep->core_sysdep_malloc((uint32_t)(strlen(src) + 1), module_name); in core_strdup()
169 int32_t core_sprintf(aiot_sysdep_portfile_t *sysdep, char **dest, char *fmt, char *src[], uint8_t c… in core_sprintf() argument
182 buffer = sysdep->core_sysdep_malloc(buffer_len + 1, module_name); in core_sprintf()
296 int32_t core_strcat(aiot_sysdep_portfile_t *sysdep, char **dest, char *src1, char *src2, char *modu…
302 tmp_dest = sysdep->core_sysdep_malloc(dest_len, module_name);
311 sysdep->core_sysdep_free(*dest);
A Dcore_string.h29 int32_t core_strdup(aiot_sysdep_portfile_t *sysdep, char **dest, char *src, char *module_name);
30 int32_t core_sprintf(aiot_sysdep_portfile_t *sysdep, char **dest, char *fmt, char *src[], uint8_t c…
35 int32_t core_strcat(aiot_sysdep_portfile_t *sysdep, char **dest, char *src1, char *src2, char *modu…
A Dcore_diag.c24 void core_diag(aiot_sysdep_portfile_t *sysdep, int32_t code, uint8_t *data, uint32_t data_len) in core_diag() argument
26 g_diag_cb(g_diag_handle, core_log_get_timestamp(sysdep), code, data, data_len); in core_diag()
/AliOS-Things-master/components/linksdk/components/dynreg/
A Daiot_dynreg_api.c45 dynreg_handle->sysdep->core_sysdep_free(plain_text); in _dynreg_sign()
126 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_dynreg_init() local
128 sysdep = aiot_sysdep_get_portfile(); in aiot_dynreg_init()
129 if (sysdep == NULL) { in aiot_dynreg_init()
139 dynreg_handle->sysdep = sysdep; in aiot_dynreg_init()
247 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_dynreg_deinit() local
254 sysdep = dynreg_handle->sysdep; in aiot_dynreg_deinit()
285 sysdep->core_sysdep_free(dynreg_handle->host); in aiot_dynreg_deinit()
301 sysdep->core_sysdep_free(dynreg_handle->cred); in aiot_dynreg_deinit()
306 sysdep->core_sysdep_free(dynreg_handle); in aiot_dynreg_deinit()
[all …]
/AliOS-Things-master/components/linksdk/components/bootstrap/
A Daiot_bootstrap_api.c313 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_bootstrap_init() local
315 sysdep = aiot_sysdep_get_portfile(); in aiot_bootstrap_init()
316 if (sysdep == NULL) { in aiot_bootstrap_init()
320 res = core_global_init(sysdep); in aiot_bootstrap_init()
327 core_global_deinit(sysdep); in aiot_bootstrap_init()
332 bootstrap_handle->sysdep = sysdep; in aiot_bootstrap_init()
335 core_global_deinit(sysdep); in aiot_bootstrap_init()
461 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_bootstrap_deinit() local
468 sysdep = bootstrap_handle->sysdep; in aiot_bootstrap_deinit()
524 core_global_deinit(sysdep); in aiot_bootstrap_deinit()
[all …]
/AliOS-Things-master/components/linksdk/core/
A Daiot_mqtt_api.c237 mqtt_handle->sysdep->core_sysdep_free(node); in _core_mqtt_topic_alias_list_remove_all()
1544 mqtt_handle->sysdep->core_sysdep_free(pkt); in _core_mqtt_subunsub()
2343 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_mqtt_init() local
2345 sysdep = aiot_sysdep_get_portfile(); in aiot_mqtt_init()
2346 if (sysdep == NULL) { in aiot_mqtt_init()
2350 res = core_global_init(sysdep); in aiot_mqtt_init()
2357 core_global_deinit(sysdep); in aiot_mqtt_init()
2362 mqtt_handle->sysdep = sysdep; in aiot_mqtt_init()
2664 core_global_deinit(mqtt_handle->sysdep); in aiot_mqtt_deinit()
3115 mqtt_handle->sysdep->core_sysdep_free(pkt); in _core_mqtt_pub()
[all …]
A Daiot_http_api.c5 http_handle->sysdep->core_sysdep_mutex_lock(http_handle->data_mutex); in _core_aiot_http_exec_inc()
7 http_handle->sysdep->core_sysdep_mutex_unlock(http_handle->data_mutex); in _core_aiot_http_exec_inc()
12 http_handle->sysdep->core_sysdep_mutex_lock(http_handle->data_mutex); in _core_aiot_http_exec_dec()
147 http_handle->sysdep->core_sysdep_free(content); in _core_http_send_auth()
161 http_handle->sysdep->core_sysdep_free(path); in _core_http_send_auth()
162 http_handle->sysdep->core_sysdep_free(content); in _core_http_send_auth()
434 http_handle->sysdep->core_sysdep_free(path); in aiot_http_send()
447 http_handle->sysdep->core_sysdep_free(path); in aiot_http_send()
448 http_handle->sysdep->core_sysdep_free(header); in aiot_http_send()
479 timenow_ms = http_handle->sysdep->core_sysdep_time(); in aiot_http_recv()
[all …]
/AliOS-Things-master/components/linksdk/components/task/
A Daiot_task_api.c673 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_task_setopt() local
682 sysdep = task_handle->sysdep; in aiot_task_setopt()
714 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_task_init() local
716 sysdep = aiot_sysdep_get_portfile(); in aiot_task_init()
717 if (sysdep == NULL) { in aiot_task_init()
727 task_handle->sysdep = sysdep; in aiot_task_init()
729 core_global_init(sysdep); in aiot_task_init()
736 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_task_deinit() local
744 sysdep = task_handle->sysdep; in aiot_task_deinit()
759 sysdep->core_sysdep_free(task_handle); in aiot_task_deinit()
[all …]
/AliOS-Things-master/components/linksdk/components/logpost/
A Daiot_logpost_api.c106 logpost_handle->sysdep->core_sysdep_free(topic); in _logpost_get_config()
138 handle->sysdep->core_sysdep_free(content); in _logpost_send_nwkstats_rtt()
191 handle->sysdep->core_sysdep_free(content); in _logpost_send_nwkstats_conn()
256 if (NULL == sysdep) { in aiot_logpost_init()
266 logpost_handle->sysdep = sysdep; in aiot_logpost_init()
270 core_global_init(sysdep); in aiot_logpost_init()
402 …_core_log_append_date(logpost_handle->sysdep, core_log_get_timestamp(logpost_handle->sysdep), utc); in aiot_logpost_send()
430 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_logpost_deinit() local
439 sysdep = logpost_handle->sysdep; in aiot_logpost_deinit()
455 sysdep->core_sysdep_free(logpost_handle); in aiot_logpost_deinit()
[all …]
/AliOS-Things-master/components/linksdk/components/ntp/
A Daiot_ntp_api.c122 ntp_handle->sysdep->core_sysdep_free(topic); in _ntp_operate_topic_map()
160 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_ntp_init() local
162 sysdep = aiot_sysdep_get_portfile(); in aiot_ntp_init()
163 if (sysdep == NULL) { in aiot_ntp_init()
173 ntp_handle->sysdep = sysdep; in aiot_ntp_init()
176 ntp_handle->data_mutex = sysdep->core_sysdep_mutex_init(); in aiot_ntp_init()
266 deinit_timestart = ntp_handle->sysdep->core_sysdep_time(); in aiot_ntp_deinit()
282 ntp_handle->sysdep->core_sysdep_free(ntp_handle); in aiot_ntp_deinit()
325 ntp_handle->sysdep->core_sysdep_free(topic); in aiot_ntp_send_request()
332 ntp_handle->sysdep->core_sysdep_free(topic); in aiot_ntp_send_request()
[all …]
/AliOS-Things-master/components/linksdk/components/diag/
A Daiot_diag_api.c109 diag_handle->sysdep->core_sysdep_free(desc); in _diag_desc_list_append()
168 diag_handle->sysdep->core_sysdep_free(topic); in _diag_desc_list_send()
181 diag_handle->sysdep->core_sysdep_free(node); in _diag_desc_list_destroy()
375 diag_handle->sysdep->core_sysdep_free(extra_data); in _diag_alink_uplink_extra_clean()
435 diag_handle->sysdep->core_sysdep_free(node); in _diag_running_state_start()
548 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_diag_init() local
550 sysdep = aiot_sysdep_get_portfile(); in aiot_diag_init()
551 if (sysdep == NULL) { in aiot_diag_init()
555 res = core_global_init(sysdep); in aiot_diag_init()
566 diag_handle->sysdep = sysdep; in aiot_diag_init()
[all …]
/AliOS-Things-master/components/linksdk/components/devinfo/
A Daiot_devinfo_api.c65 devinfo_handle->sysdep->core_sysdep_free(tmp_pk); in _devinfo_find_pk_dn()
197 devinfo_handle->sysdep->core_sysdep_free(topic); in _devinfo_send()
202 devinfo_handle->sysdep->core_sysdep_free(topic); in _devinfo_send()
203 devinfo_handle->sysdep->core_sysdep_free(payload); in _devinfo_send()
246 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_devinfo_init() local
248 sysdep = aiot_sysdep_get_portfile(); in aiot_devinfo_init()
249 if (sysdep == NULL) { in aiot_devinfo_init()
253 res = core_global_init(sysdep); in aiot_devinfo_init()
260 core_global_deinit(sysdep); in aiot_devinfo_init()
265 devinfo_handle->sysdep = sysdep; in aiot_devinfo_init()
[all …]
/AliOS-Things-master/components/linksdk/components/shadow/
A Daiot_shadow_api.c48 sysdep->core_sysdep_free(tmp_pk); in _shadow_get_pk_dn()
177 shadow_handle->sysdep->core_sysdep_free(pk); in _shadow_recv_message_handler()
178 shadow_handle->sysdep->core_sysdep_free(dn); in _shadow_recv_message_handler()
186 shadow_handle->sysdep->core_sysdep_free(pk); in _shadow_recv_message_handler()
189 shadow_handle->sysdep->core_sysdep_free(dn); in _shadow_recv_message_handler()
228 if (NULL == sysdep) { in aiot_shadow_init()
238 shadow_handle->sysdep = sysdep; in aiot_shadow_init()
406 shadow_handle->sysdep->core_sysdep_free(topic); in aiot_shadow_send()
416 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_shadow_deinit() local
424 sysdep = shadow_handle->sysdep; in aiot_shadow_deinit()
[all …]
/AliOS-Things-master/components/linksdk/components/data-model/
A Daiot_dm_api.c243 core_global_alink_id_next(handle->sysdep, &id); in _dm_send_alink_req()
259 handle->sysdep->core_sysdep_free(payload); in _dm_send_alink_req()
294 handle->sysdep->core_sysdep_free(payload); in _dm_send_alink_rsp()
723 if (NULL == sysdep) { in aiot_dm_init()
733 dm_handle->sysdep = sysdep; in aiot_dm_init()
736 core_global_init(sysdep); in aiot_dm_init()
808 dm_handle->sysdep->core_sysdep_free(topic); in aiot_dm_send()
815 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_dm_deinit() local
823 sysdep = dm_handle->sysdep; in aiot_dm_deinit()
838 sysdep->core_sysdep_free(dm_handle); in aiot_dm_deinit()
[all …]
A Ddm_private.h46 #define DM_FREE(ptr) do {if (ptr) {dm_handle->sysdep->core_sysdep_free(ptr); ptr…
50 aiot_sysdep_portfile_t *sysdep; member
/AliOS-Things-master/components/linksdk/components/subdev/
A Daiot_subdev_api.c282 subdev_handle->sysdep->core_sysdep_free(topic); in _subdev_send_message()
287 subdev_handle->sysdep->core_sysdep_free(topic); in _subdev_send_message()
288 subdev_handle->sysdep->core_sysdep_free(payload); in _subdev_send_message()
362 subdev_handle->sysdep->core_sysdep_free(client_id); in _subdev_topo_add_append_params()
426 subdev_handle->sysdep->core_sysdep_free(client_id); in _subdev_batch_login_append_device_list()
489 aiot_sysdep_portfile_t *sysdep = NULL; in aiot_subdev_init() local
491 sysdep = aiot_sysdep_get_portfile(); in aiot_subdev_init()
492 if (sysdep == NULL) { in aiot_subdev_init()
496 res = core_global_init(sysdep); in aiot_subdev_init()
507 subdev_handle->sysdep = sysdep; in aiot_subdev_init()
[all …]

Completed in 48 milliseconds

12