Home
last modified time | relevance | path

Searched refs:module_name (Results 1 – 25 of 90) sorted by relevance

1234

/AliOS-Things-master/components/amp/engine/quickjs_engine/startup/
A Dquickjs_module_load.c32 module_info->name = module_name; in quickjs_add_prebuild_module()
42 if (strcmp(module_info->name, module_name) == 0) { in find_prebuild_module()
61 aos_printf("begin load module %s\n", module_name); in quickjs_module_loader()
63 if (strchr(module_name, '/') != NULL) { in quickjs_module_loader()
64 if (*module_name != '/') { in quickjs_module_loader()
71 buf_len = strlen(module_name) + 1; in quickjs_module_loader()
72 path = module_name; in quickjs_module_loader()
84 func_val = JS_Eval(ctx, (char *) buf, buf_len, module_name, in quickjs_module_loader()
105 aos_printf("load module %s fail, undefined\n", module_name); in quickjs_module_loader()
110 aos_printf("load module %s fail, exception\n", module_name); in quickjs_module_loader()
[all …]
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_auth.c3 …psk_id, char psk[65], char *product_key, char *device_name, char *device_secret, char *module_name) in core_auth_tls_psk() argument
15 …sysdep, &tmp_psk_id, "%s|%s|%s&%s|%s", psk_id_src, sizeof(psk_id_src)/sizeof(char *), module_name); in core_auth_tls_psk()
20 … "id%s&%stimestamp%s", psk_plain_text_src, sizeof(psk_plain_text_src)/sizeof(char *), module_name); in core_auth_tls_psk()
35 …ot_sysdep_portfile_t *sysdep, char **dest, char *product_key, char *device_name, char *module_name) 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()
50 …text, "clientIddeviceName%sproductKey%stimestamp%s", src, sizeof(src)/sizeof(char *), module_name); in core_auth_mqtt_password()
53 … "clientId%s.%sdeviceName%sproductKey%stimestamp%s", src, sizeof(src)/sizeof(char *), module_name); in core_auth_mqtt_password()
60 *dest = sysdep->core_sysdep_malloc(65, module_name); in core_auth_mqtt_password()
88 …*sysdep, char **dest, char *product_key, char *device_name, char *device_secret, char *module_name) in core_auth_http_body() argument
96 …re_sprintf(sysdep, &plain_text, "clientId%s.%sdeviceName%sproductKey%s", sign_ele, 4, module_name); in core_auth_http_body()
[all …]
A Dcore_auth.h17 …sk_id, char psk[65], char *product_key, char *device_name, char *device_secret, char *module_name);
18 …t_sysdep_portfile_t *sysdep, char **dest, char *product_key, char *device_name, char *module_name);
19 …product_key, char *device_name, char *device_secret, uint8_t assigned_clientid, char *module_name);
20 …vice_name, char *secure_mode, char *extend_clientid, uint8_t assigned_clientid, char *module_name);
21 …sysdep, char **dest, char *product_key, char *device_name, char *device_secret, char *module_name);
A Dcore_string.h29 int32_t core_strdup(aiot_sysdep_portfile_t *sysdep, char **dest, char *src, char *module_name);
31 char *module_name);
35 …ore_strcat(aiot_sysdep_portfile_t *sysdep, char **dest, char *src1, char *src2, char *module_name);
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_mem_stats.c43 char module_name[32]; member
193 char *module_name = NULL; in LITE_realloc_internal() local
228 if (!module_name || !list_head) { in _create_mem_table()
237 len = strlen(module_name); in _create_mem_table()
238 memcpy(pos->mem_statis.module_name, module_name, in _create_mem_table()
253 if (!module_name || !list_head) { in _find_mem_table()
259 if (!strcmp(module_name, pos->mem_statis.module_name)) { in _find_mem_table()
305 char *module_name = NULL; in _count_malloc_internal() local
314 module_name = "unknown"; in _count_malloc_internal()
551 char *module_name = NULL; in LITE_malloc_routine() local
[all …]
A Dinfra_json_parser.c317 char *module_name = NULL; in LITE_json_value_of() local
374 char *module_name = NULL; in _LITE_json_keys_of() local
408 if (module_name) { in _LITE_json_keys_of()
424 if (module_name) { in _LITE_json_keys_of()
460 char *module_name = NULL; in LITE_json_keys_of() local
486 char *module_name = NULL; in _LITE_json_keys_of_ext() local
527 if (module_name) { in _LITE_json_keys_of_ext()
544 if (module_name) { in _LITE_json_keys_of_ext()
561 if (module_name) { in _LITE_json_keys_of_ext()
599 if (module_name) { in _LITE_json_keys_of_ext()
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjmodule.c42 const char *module_name = ""; in module_print() local
45 module_name = mp_obj_str_get_str(elem->value); in module_print()
53 mp_printf(print, "<module '%s' from '%s'>", module_name, mp_obj_str_get_str(elem->value)); in module_print()
58 mp_printf(print, "<module '%s'>", module_name); in module_print()
111 mp_obj_t mp_obj_new_module(qstr module_name) { in mp_obj_new_module() argument
246 mp_obj_t mp_module_get(qstr module_name) { in mp_module_get() argument
249 …mp_map_elem_t *el = mp_map_lookup(mp_loaded_modules_map, MP_OBJ_NEW_QSTR(module_name), MP_MAP_LOOK… in mp_module_get()
253 …el = mp_map_lookup((mp_map_t *)&mp_builtin_module_map, MP_OBJ_NEW_QSTR(module_name), MP_MAP_LOOKUP… in mp_module_get()
257 mp_module_call_init(module_name, el->value); in mp_module_get()
285 void mp_module_call_init(qstr module_name, mp_obj_t module_obj) { in mp_module_call_init() argument
[all …]
A Dobjmodule.h33 mp_obj_t mp_module_get(qstr module_name);
39 void mp_module_call_init(qstr module_name, mp_obj_t module_obj);
41 static inline void mp_module_call_init(qstr module_name, mp_obj_t module_obj) { in mp_module_call_init() argument
42 (void)module_name; in mp_module_call_init()
A Dmakemoduledefs.py64 for module_name, obj_module, enabled_define in modules:
65 mod_def = "MODULE_DEF_{}".format(module_name.upper())
76 module_name=module_name,
/AliOS-Things-master/components/ota/ota_agent/
A Dota_service.c62 int ota_report_module_version(void *ota_ctx, char *module_name, char *version) in ota_report_module_version() argument
282 int ota_set_module_information(ota_service_t *ctx, char *module_name, in ota_set_module_information() argument
289 if ((ctx == NULL) || (module_name == NULL) || (store_path == NULL)) { in ota_set_module_information()
297 module_name_len = strlen(module_name); in ota_set_module_information()
303 strncpy(ctx->module_queue_ptr[i].module_name, module_name, module_name_len); in ota_set_module_information()
322 if ((ctx == NULL) || (module_info == NULL) || (module_name == NULL)) { in ota_get_module_information()
330 module_name_len = strlen(module_name); in ota_get_module_information()
331 if (module_name_len <= sizeof(ctx->module_queue_ptr[0].module_name)) { in ota_get_module_information()
333 if (strncmp(module_name, ctx->module_queue_ptr[i].module_name, module_name_len) == 0) { in ota_get_module_information()
334 strncpy(module_info->module_name, module_name, strlen(module_name)); in ota_get_module_information()
[all …]
/AliOS-Things-master/components/amp/services/app_mgr/
A Dapp_upgrade.c26 char *ota_get_module_ver(void* pctx, char *module_name) in ota_get_module_ver() argument
31 if ((pctx != NULL) && (module_name != NULL)) { in ota_get_module_ver()
32 if (strncmp(module_name, AMP_OTA_MODULE_NAME, strlen(module_name)) == 0) { in ota_get_module_ver()
37 ret = ota_get_module_information(ctx, module_name, &module_info); in ota_get_module_ver()
59 } else if (strncmp(module_name, "default", strlen(module_name)) == 0) { in ota_get_module_ver()
165 ret = ota_get_module_information(ctx, ctx->module_name, &module_info); in ota_service_maindev_fs_start()
267 ret = ota_report_module_version(ctx, tmp_ctx->module_name, version); in internal_module_upgrade_start()
297 if ((pctx == NULL) || (ver == NULL) || (module_name == NULL)) { in internal_upgrade_cb()
301 if (strncmp(module_name, "default", strlen(module_name)) == 0) { in internal_upgrade_cb()
303 current_ver = ota_get_module_ver(pctx, module_name); in internal_upgrade_cb()
[all …]
/AliOS-Things-master/solutions/javascript_demo/ota_demo/
A Dota_4g.js8 var module_name = 'default'; variable
38 module_name: module_name,
43 console.log('module_name is ' + res.module_name);
51 info.module_name = res.module_name;
A Dota_wifi.js11 var module_name = 'default'; variable
44 module_name: module_name,
49 console.log('module_name is ' + res.module_name);
57 info.module_name = res.module_name;
/AliOS-Things-master/components/amp/example-js/
A Dota.js8 var module_name = 'default'; variable
38 module_name: module_name,
43 console.log('module_name is ' + res.module_name);
51 info.module_name = res.module_name;
/AliOS-Things-master/components/amp_adapter/platform/linux/
A Daos_ota.c24 int ota_report_module_version(void *ota_ctx, char *module_name, char *version) in ota_report_module_version() argument
47 typedef int32_t (*cbb)(void *pctx, char *ver, char *module_name, void *args);
53 int ota_set_module_information(ota_service_t *ctx, char *module_name, in ota_set_module_information() argument
66 int ota_transport_inform(void *mqttclient, char *pk, char *dn, char *module_name, char *ver) in ota_transport_inform() argument
/AliOS-Things-master/components/amp_adapter/platform/aos/haas700/
A Dota_agent.h207 char module_name[33]; member
219 char module_name[33]; /* module name*/ member
290 int ota_report_module_version(void *ota_ctx, char *module_name, char *version);
337 int ota_set_module_information(ota_service_t *ctx, char *module_name,
350 int ota_get_module_information(ota_service_t *ctx, char *module_name, ota_store_module_info_t *modu…
412 int ota_transport_inform(void *mqttclient, char *pk, char *dn, char *module_name, char *ver);
/AliOS-Things-master/components/ota/include/
A Dota_agent.h207 char module_name[33]; member
219 char module_name[33]; /* module name*/ member
290 int ota_report_module_version(void *ota_ctx, char *module_name, char *version);
337 int ota_set_module_information(ota_service_t *ctx, char *module_name,
350 int ota_get_module_information(ota_service_t *ctx, char *module_name, ota_store_module_info_t *modu…
412 int ota_transport_inform(void *mqttclient, char *pk, char *dn, char *module_name, char *ver);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal/
A Ddct_api.h87 int32_t dct_register_module(char *module_name);
95 int32_t dct_unregister_module(char *module_name);
104 int32_t dct_open_module(dct_handle_t *dct_handle, char *module_name);
/AliOS-Things-master/components/freetype/include/
A Dftmodapi.h190 const FT_String* module_name; member
251 const char* module_name );
341 const FT_String* module_name,
405 const FT_String* module_name,
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/
A Dquickjs-libc.h36 JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name);
37 JSModuleDef *js_init_module_os(JSContext *ctx, const char *module_name);
47 const char *module_name, void *opaque);
/AliOS-Things-master/solutions/ota_demo/
A Dotaappdemo.c57 ret = ota_get_module_information(tmp_ctx, tmp_ctx->module_name, &module_info); in ota_module_upgrade_start()
72 ret = ota_report_module_version(ctx, tmp_ctx->module_name, version); in ota_module_upgrade_start()
95 static int ota_upgrade_cb(ota_service_t *pctx, char *ver, char *module_name) in ota_upgrade_cb() argument
100 if ((pctx == NULL) || (ver == NULL) || (module_name == NULL)) { in ota_upgrade_cb()
104 if (strncmp(module_name, "default", strlen(module_name)) == 0) { in ota_upgrade_cb()
115 } else if (strncmp(module_name, USER_MODE_NAME, strlen(module_name)) == 0) { in ota_upgrade_cb()
/AliOS-Things-master/components/py_engine/external/app_mgr/
A Dapp_upgrade.c28 char *py_ota_get_module_ver(void *pctx, char *module_name) in py_ota_get_module_ver() argument
88 static int32_t internal_upgrade_cb(void *pctx, char *ver, char *module_name) in internal_upgrade_cb() argument
93 if ((pctx == NULL) || (ver == NULL) || (module_name == NULL)) { in internal_upgrade_cb()
97 if (strncmp(module_name, "default", strlen(module_name)) == 0) { in internal_upgrade_cb()
99 current_ver = ota_get_module_ver(pctx, module_name); in internal_upgrade_cb()
/AliOS-Things-master/components/py_engine/modules/ota/
A Dmodappota.c34 char module_name[64]; member
381 mp_obj_new_str(ota_package_info->module_name, in ota_trigger_notify()
382 strlen(ota_package_info->module_name))); in ota_trigger_notify()
407 ota_package_info->module_name, in ota_trigger_notify()
408 strlen(ota_package_info->module_name)); in ota_trigger_notify()
422 static int32_t customer_upgrade_cb(void *pctx, char *ver, char *module_name, in customer_upgrade_cb() argument
429 if ((pctx == NULL) || (ver == NULL) || (module_name == NULL) || in customer_upgrade_cb()
434 if (strncmp(module_name, "default", strlen(module_name)) == 0) { in customer_upgrade_cb()
472 strncpy(ota_package_info->module_name, module_name, in customer_upgrade_cb()
473 strlen(module_name)); in customer_upgrade_cb()
/AliOS-Things-master/components/ota/ota_agent/transport/
A Dota_transport_mqtt.c64 strncpy(ctx->module_name, submodule->valuestring, sizeof(ctx->module_name) - 1); in ota_sevice_parse_msg()
162 strncpy(ctx->module_name, "default", 7); in ota_sevice_parse_msg()
175 …ctx->ota_triggered_func.triggered_ota_cb(ctx, ota_param.ver, ctx->module_name, ctx->ota_triggered_… in ota_sevice_parse_msg()
261 int ota_transport_inform(void *mqttclient, char *pk, char *dn, char *module_name, char *ver) in ota_transport_inform() argument
266 (dn == NULL) || (module_name == NULL)) { in ota_transport_inform()
270 if (strncmp(module_name, "default", strlen("default")) == 0) { in ota_transport_inform()
273 …MSG_LEN - 1, "{\"id\":%d,\"params\":{\"version\":\"%s\",\"module\":\"%s\"}}", 0, ver, module_name); in ota_transport_inform()
469 if (strncmp(ctx->module_name, "default", strlen("default")) == 0) { in ota_transport_status()
472 …:{\"step\": \"%d\",\"desc\":\"%s\",\"module\":\"%s\"}}", 1, tmp_status, err_str, ctx->module_name); in ota_transport_status()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/ota/
A Dmodule_appota.c28 char module_name[64]; member
344 duk_push_string(ctx, ota_package_info->module_name); in ota_trigger_notify()
374 static int32_t customer_upgrade_cb(void *pctx, char *ver, char *module_name, void *args) in customer_upgrade_cb() argument
380 if ((pctx == NULL) || (ver == NULL) || (module_name == NULL) || (args == NULL)) { in customer_upgrade_cb()
384 if (strncmp(module_name, "system", strlen(module_name)) == 0) { in customer_upgrade_cb()
418 strncpy(ota_package_info->module_name, module_name, strlen(module_name)); in customer_upgrade_cb()

Completed in 35 milliseconds

1234