if (lang == NULL)
return list;
+ list = g_list_append(list, strdup(lang));
+
extract_lang = __get_string_before(lang, ".");
if (extract_lang == NULL)
return list;
char *name = NULL;
r = aul_app_get_appid_bypid(getpid(), appid, PATH_MAX);
- if (r < 0)
+ if (r < 0) {
+ _ERR("Failed to get application ID - pid(%d)", getpid());
return -1;
+ }
r = __get_app_name(appid, &name);
if (r < 0)
EXPORT_API int appcore_base_on_terminate()
{
aul_finalize();
- if (__context.ops.exit)
- __context.ops.exit(__context.data);
return 0;
}
__context.suspended_state ^= __context.suspended_state;
}
+EXPORT_API void appcore_base_exit(void)
+{
+ if (__context.ops.exit)
+ __context.ops.exit(__context.data);
+}
+
static int __on_receive(aul_type type, bundle *b, void *data)
{
return appcore_base_on_receive(type, b);