Change-Id: Ie9bfc45e040ba2c1d50e9a7698d88de896a2325b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
EXPORT_API int appcore_base_on_create(void)
{
int r;
- bundle *b;
- int ret;
- int i;
- int len = 0;
- const char **tep_path;
r = aul_launch_init(__context.ops.receive, NULL);
if (r < 0) {
return -1;
}
- b = bundle_import_from_argv(__context.argc, __context.argv);
- if (b == NULL) {
- _ERR("Failed to import bundle");
- return 0;
- }
-
- tep_path = bundle_get_str_array(b, AUL_TEP_PATH, &len);
- if (tep_path) {
- for (i = 0; i < len; i++) {
- ret = aul_check_tep_mount(tep_path[i]);
- if (ret == -1) {
- _ERR("mount request not completed within 1 sec");
- exit(-1);
- }
- }
- }
-
- bundle_free(b);
-
return 0;
}