if (!prop || !sound_theme_elem)
return 0;
- if (MATCH(prop->key, "SoundThemeId")) {
+ if (!strncmp(prop->key, "SoundThemeId", strlen("SoundThemeId") + 1)) {
sscanf(prop->value, "%d", (&sound_theme_elem->id));
if (sound_theme_elem->id < 0)
return -EPERM;
- } else if (MATCH(prop->key, "SoundThemePath")) {
+ } else if (!strncmp(prop->key, "SoundThemePath", strlen("SoundThemePath") + 1)) {
int str_len = sizeof(prop->value);
sound_theme_elem->conf_file_path = strndup(prop->value, str_len);
- } else if (MATCH(prop->key, "SoundThemeDefault")) {
- if (MATCH(prop->value, "yes"))
+ } else if (!strncmp(prop->key, "SoundThemeDefault", strlen("SoundThemeDefault") + 1)) {
+ if (!strncmp(prop->value, "yes", strlen("yes") + 1))
sound_theme_elem->is_default = 1;
- else if (MATCH(prop->value, "no"))
+ else if (!strncmp(prop->value, "no", strlen("no") + 1))
sound_theme_elem->is_default = 0;
else
return -EPERM;
if (!result || !result->props)
return 0;
- if (!MATCH("SoundTheme", result->section))
+ if (strncmp("SoundTheme", result->section, strlen("SoundTheme") + 1))
return 0;
SYS_G_LIST_FOREACH(result->props, temp_glist, extracted_section_prop) {
if (!result || !result->props)
return 0;
- if (MATCH(result->section, "Sound")) {
+ if (!strncmp(result->section, "Sound", strlen("Sound") + 1)) {
if (is_default_theme_id_set()) {
_E("Failed to parse sound conf file, please check conf file description and follow the rules");
return -EINVAL;
if (!data)
return -EINVAL;
- if (!MATCH(result->section, "Sound"))
+ if (strncmp(result->section, "Sound", strlen("Sound") + 1))
return 0;
sound_config_info = (GHashTable*)data;
if (!data)
return -EINVAL;
- if (!MATCH("SoundPatternPriority", result->section))
+ if (strncmp("SoundPatternPriority", result->section, strlen("SoundPatternPriority") + 1))
return 0;
sound_config_info = (GHashTable*)data;