#define TIZEN_UNMOUNT_FALLBACK_BASE_DIR "/opt"
// END
+/* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting */
+typedef size_t (*Elm_Config_Snprintf_Func)(char *dst, size_t size, const char *fmt, ...);
+/* END */
+
static void
_elm_font_overlays_del_free(void)
{
return ecore_file_is_dir(TIZEN_MOUNT_CHECK_PATH);
}
//END
+
+/* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting */
+size_t
+_elm_config_user_fallback_dir_snprintf(char *dst, size_t size, const char *fmt, ...)
+{
+ size_t user_dir_len = 0, off = 0;
+ va_list ap;
+
+ user_dir_len = _elm_config_user_fallback_dir(dst, size);
+ off = user_dir_len + 1;
+ if (off >= size) return off;
+ dst[user_dir_len] = '/';
+ va_start(ap, fmt);
+ off += vsnprintf(dst + off, size - off, fmt, ap);
+ va_end(ap);
+
+ return off;
+}
+/* END */
+
size_t
_elm_config_user_dir_snprintf(char *dst,
size_t size,
return EINA_FALSE;
}
+/* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting
Eina_Bool
_elm_config_save(Elm_Config *cfg, const char *profile)
+ */
+Eina_Bool
+_elm_config_save_internal(Elm_Config *cfg, const char *profile, Elm_Config_Snprintf_Func snprintf_func)
+/* END */
{
char buf[4096], buf2[4096];
int ok = 0, ret;
Eet_File *ef;
size_t len;
+ /* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting
len = _elm_config_user_dir_snprintf(buf, sizeof(buf), "themes/");
+ */
+ len = snprintf_func(buf, sizeof(buf), "themes/");
+ /* END */
if (len + 1 >= sizeof(buf))
return EINA_FALSE;
return EINA_FALSE;
}
+ /* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting
len = _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s",
profile ? profile : _elm_profile);
+ */
+ len = snprintf_func(buf, sizeof(buf), "config/%s",
+ profile ? profile : _elm_profile);
+ /* END */
if (len + 1 >= sizeof(buf))
return EINA_FALSE;
return EINA_FALSE;
}
+/* TIZEN_ONLY(20161208): update config data for processes which are launched before lazy mounting */
+Eina_Bool
+_elm_config_save(Elm_Config *cfg, const char *profile)
+{
+ Eina_Bool ret = EINA_TRUE;
+
+ ret &= _elm_config_save_internal(cfg, profile, _elm_config_user_dir_snprintf);
+ ret &= _elm_config_save_internal(cfg, profile, _elm_config_user_fallback_dir_snprintf);
+
+ return ret;
+}
+/* END */
+
// TIZEN_ONLY(20150705): Genlist item align feature
void
_elm_config_scroll_item_valign_set(const char *scroll_item_valign)