#include "sound-theme-manager.h"
#define INITIAL_DEFAULT_SOUND_THEME_ID -1
+#define SOUND_CONF_FILE FEEDBACK_SYS_RO_SHARE"/feedback/sound.conf"
+
static int default_sound_theme_id = INITIAL_DEFAULT_SOUND_THEME_ID;
static GHashTable *g_hash_table_to_check_id_duplicated;
return -EPERM;
}
-int sound_parser_init(const char* sound_file_path)
+int sound_parser_init(void)
{
int ret = 0;
g_hash_table_to_check_id_duplicated = g_hash_table_new_full(g_int_hash, g_int_equal,
g_free, g_free);
- ret = syscommon_config_parse_by_section(sound_file_path, parse_sound_theme_section, NULL);
+ ret = syscommon_config_parse_by_section(SOUND_CONF_FILE, parse_sound_theme_section, NULL);
if (!is_default_theme_id_set()) {
_E("Failed to parse sound conf file. There is no default sound theme id");
#ifndef __SOUND_PARSER_H__
#define __SOUND_PARSER_H__
-int sound_parser_init(const char* sound_file_path);
+int sound_parser_init(void);
void sound_parser_exit(void);
#endif
\ No newline at end of file
#include "sound-parser.h"
#include "sound-theme-manager.h"
-#define SOUND_CONF_FILE FEEDBACK_SYS_RO_SHARE"/feedback/sound.conf"
-#define SOUND_NAME "Sound"
/* Temporary keys */
#ifndef VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL
#define VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL "db/setting/sound/button_sounds"
sound_thememan_exit();
}
- ret = sound_parser_init(SOUND_CONF_FILE);
+ ret = sound_parser_init();
if (ret < 0) {
_E("Failed to parsing sound config file(%d)", ret);
sound_thememan_exit();