static void use_xmonitor(char *buffer)
{
g_conf.use_xmonitor = !strcasecmp(buffer, "true");
- DbgPrint("Use xmonitor: %d\n", g_conf.use_xmonitor);
}
static void use_sw_backend_handler(char *buffer)
{
g_conf.use_sw_backend = !strcasecmp(buffer, "true");
- DbgPrint("SW Backend: %d\n", g_conf.use_sw_backend);
}
static void provider_method_handler(char *buffer)
g_conf.provider_method = strdup(buffer);
if (!g_conf.provider_method)
ErrPrint("Heap: %s\n", strerror(errno));
-
- DbgPrint("Method: %s\n", g_conf.provider_method);
}
static void debug_mode_handler(char *buffer)
{
g_conf.debug_mode = !strcasecmp(buffer, "true");
- DbgPrint("Debug mode: %d\n", g_conf.debug_mode);
}
static void overwrite_content_handler(char *buffer)
{
g_conf.overwrite_content = !strcasecmp(buffer, "true");
- DbgPrint("Overwrite Content: %d\n", g_conf.overwrite_content);
}
static void com_core_thread_handler(char *buffer)
{
g_conf.com_core_thread = !strcasecmp(buffer, "true");
- DbgPrint("Com core thread: %d\n", g_conf.com_core_thread);
}
static void base_width_handler(char *buffer)
{
if (sscanf(buffer, "%d", &g_conf.base_width) != 1)
ErrPrint("Failed to parse the base_width\n");
-
- DbgPrint("Base width: %d\n", g_conf.base_width);
}
static void base_height_handler(char *buffer)
{
if (sscanf(buffer, "%d", &g_conf.base_height) != 1)
ErrPrint("Failed to parse the base_height\n");
- DbgPrint("Base height: %d\n", g_conf.base_height);
}
static void minimum_period_handler(char *buffer)
g_conf.default_conf.script = strdup(buffer);
if (!g_conf.default_conf.script)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Default script: %s\n", g_conf.default_conf.script);
}
static void default_abi_handler(char *buffer)
g_conf.default_conf.abi = strdup(buffer);
if (!g_conf.default_conf.abi)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Default ABI: %s\n", g_conf.default_conf.abi);
}
static void default_group_handler(char *buffer)
g_conf.default_conf.pd_group = strdup(buffer);
if (!g_conf.default_conf.pd_group)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Default PD Group: %s\n", g_conf.default_conf.pd_group);
}
static void default_period_handler(char *buffer)
g_conf.default_content = strdup(buffer);
if (!g_conf.default_content)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Default content: %s\n", g_conf.default_content);
}
static void default_title_handler(char *buffer)
g_conf.default_title = strdup(buffer);
if (!g_conf.default_title)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Default title: %s\n", g_conf.default_title);
}
static void minimum_space_handler(char *buffer)
{
if (sscanf(buffer, "%lu", &g_conf.minimum_space) != 1)
ErrPrint("Failed to parse the minimum_space\n");
- DbgPrint("Minimum space: %lu\n", g_conf.minimum_space);
}
static void replace_tag_handler(char *buffer)
g_conf.replace_tag = strdup(buffer);
if (!g_conf.replace_tag)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Replace Tag: %s\n", g_conf.replace_tag);
}
static void slave_ttl_handler(char *buffer)
{
if (sscanf(buffer, "%d", &g_conf.max_log_line) != 1)
ErrPrint("Failed to parse the max_log_line\n");
- DbgPrint("Max log line: %d\n", g_conf.max_log_line);
}
static void max_log_file_handler(char *buffer)
{
if (sscanf(buffer, "%d", &g_conf.max_log_file) != 1)
ErrPrint("Failed to parse the max_log_file\n");
- DbgPrint("Max log file: %d\n", g_conf.max_log_file);
}
static void sqlite_flush_max_handler(char *buffer)
{
if (sscanf(buffer, "%lu", &g_conf.sqlite_flush_max) != 1)
ErrPrint("Failed to parse the sqlite_flush_max\n");
- DbgPrint("Flush size: %lu\n", g_conf.sqlite_flush_max);
}
static void db_path_handler(char *buffer)
g_conf.path.db = strdup(buffer);
if (!g_conf.path.db)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("DB Path: %s\n", g_conf.path.db);
}
static void reader_path_handler(char *buffer)
g_conf.path.reader = strdup(buffer);
if (!g_conf.path.reader)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Reader Path: %s\n", g_conf.path.reader);
}
static void always_path_handler(char *buffer)
g_conf.path.always = strdup(buffer);
if (!g_conf.path.always)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Always Path: %s\n", g_conf.path.always);
}
static void log_path_handler(char *buffer)
g_conf.path.slave_log = strdup(buffer);
if (!g_conf.path.slave_log)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("LOG Path: %s\n", g_conf.path.slave_log);
}
static void script_port_path_handler(char *buffer)
g_conf.path.script_port = strdup(buffer);
if (!g_conf.path.script_port)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Script Port PATH: %s\n", g_conf.path.script_port);
}
static void share_path_handler(char *buffer)
g_conf.path.image = strdup(buffer);
if (!g_conf.path.image)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Shared folder: %s\n", g_conf.path.image);
}
static void input_path_handler(char *buffer)
g_conf.path.input = strdup(buffer);
if (!g_conf.path.input)
ErrPrint("Heap: %s\n", strerror(errno));
- DbgPrint("Input path: %s\n", g_conf.path.input);
}
static void ping_time_handler(char *buffer)
{
if (sscanf(buffer, "%d", &g_conf.slave_max_load) != 1)
ErrPrint("Failed to parse the slave_max_load\n");
- DbgPrint("Max load: %d\n", g_conf.slave_max_load);
}
HAPI int conf_loader(void)
conf_update_size();
- fp = fopen("/usr/share/data-provider-master/conf.ini", "rt");
+ fp = fopen(CONF_FILE, "rt");
if (!fp) {
ErrPrint("Error: %s\n", strerror(errno));
return LB_STATUS_ERROR_IO;
if (token_idx >= 0 && token_handler[token_idx].handler) {
buffer[buffer_idx] = '\0';
- DbgPrint("BUFFER: [%s]\n", buffer);
token_handler[token_idx].handler(buffer);
}
int ret;
int size = DEFAULT_FONT_SIZE;
+ DbgPrint("Scale factor: %lf\n", elm_config_scale_get());
+
ret = conf_loader();
DbgPrint("Configureation manager is initiated: %d\n", ret);
- DbgPrint("Scale factor: %lf\n", elm_config_scale_get());
if (COM_CORE_THREAD)
setenv("PROVIDER_COM_CORE_THREAD", "true", 0);
DbgPrint("Content update monitor is initiated: %d\n", ret);
ret = vconf_notify_key_changed("db/setting/accessibility/font_name", font_changed_cb, NULL);
- DbgPrint("System font is changed: %d\n", ret);
+ DbgPrint("System font changed callback is added: %d\n", ret);
ret = system_settings_set_changed_cb(SYSTEM_SETTINGS_KEY_FONT_SIZE, font_size_cb, NULL);
- DbgPrint("System font size is changed: %d\n", ret);
+ DbgPrint("System font size changed callback is added: %d\n", ret);
ret = vconf_notify_key_changed(VCONFKEY_SYSMAN_STIME, time_changed_cb, NULL);
DbgPrint("System time changed event callback added: %d\n", ret);
DbgPrint("MMC status changed event callback added: %d\n", ret);
s_info.font_name = vconf_get_str("db/setting/accessibility/font_name");
- DbgPrint("Current font: %s\n", s_info.font_name);
+ DbgPrint("Current font is [%s]\n", s_info.font_name);
ret = system_settings_get_value_int(SYSTEM_SETTINGS_KEY_FONT_SIZE, &size);
- DbgPrint("Get fontsize: %d\n", ret);
+ DbgPrint("Current font size get: %d\n", ret);
s_info.font_size = convert_font_size(size);
- DbgPrint("Current size: %d\n", s_info.font_size);
+ DbgPrint("Current font size: %d\n", s_info.font_size);
return TRUE;
}