sound: Set sound theme default value as "no" 75/301275/2 accepted/tizen/7.0/unified/20231114.180326
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 13 Nov 2023 07:59:14 +0000 (16:59 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 13 Nov 2023 08:18:54 +0000 (17:18 +0900)
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>
common/data/sound.conf
src/sound-parser.c

index f1680c9..b9d947a 100644 (file)
@@ -16,6 +16,7 @@
 #     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.
index 53c7dc2..ca81608 100644 (file)
@@ -80,7 +80,11 @@ static int parse_sound_theme_property(gpointer data, gpointer user_data)
 
 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;