If the user does not set the "SoundThemeDefault" value in the conf file,
that SoundTheme section default value will be 0 automatically.
Change-Id: I3222330d6f203dfa3fd888b32dc598b9e6a40f46
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
# At least one sound theme should be specified.
# It's not allowed to set serveral default sound theme.
# If there is no default SoundTheme, parsing will fail.
+# If SoundThemeDefault is not exist, that SoundTheme default value is automatically set to "no".
#
# When you use SoundTheme, You should follow the accurate range of number according to above description.
# If you do not follow above description, the conf file parsing will be fail.
static int parse_sound_theme_section(const struct parse_result *result, void *data)
{
- struct sound_theme_info sound_theme_elem = {0,};
+ struct sound_theme_info sound_theme_elem = {
+ .id = 0,
+ .is_default = 0,
+ .conf_file_path = NULL
+ };
struct section_property *extracted_section_prop = NULL;
GList *temp_glist = NULL;
int ret = 0;