val = vconf_keynode_get_int(key);
if (val >= VCONFKEY_SYSMAN_LOW_MEMORY_SOFT_WARNING) {
- __invoke_callback(key, APPCORE_BASE_EVENT_LOW_MEMORY);
+ __invoke_callback(&val, APPCORE_BASE_EVENT_LOW_MEMORY);
malloc_trim(0);
}
}
val = vconf_keynode_get_int(key);
if (val <= VCONFKEY_SYSMAN_BAT_CRITICAL_LOW)
- __invoke_callback(key, APPCORE_BASE_EVENT_LOW_BATTERY);
+ __invoke_callback(&val, APPCORE_BASE_EVENT_LOW_BATTERY);
}
static void __destroy_lang_info(gpointer data)
return 0;
}
+EXPORT_API int appcore_base_set_i18n(const char *domain_name, const char *dir_name)
+{
+ return __set_i18n(domain_name, dir_name);
+}
+
EXPORT_API int appcore_base_init(appcore_base_ops ops, int argc, char **argv, void *data)
{
int i;
EXPORT_API int appcore_base_get_rotation_state(enum appcore_base_rm *curr)
{
+ if (curr == NULL)
+ return -1;
+
+ if (!__rotation.ref)
+ return -1;
+
+ *curr = __rotation.rm;
return 0;
}