Invoke config changed callbacks directly 52/289452/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 24 Feb 2023 05:14:10 +0000 (14:14 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 7 Mar 2023 06:18:18 +0000 (15:18 +0900)
commit5756353e878c73761e692ab0e81119c4ee69031e
tree3bea5d88284d892984b75da2facab3b5b97fefb4
parent433359b8496b55e2ea54fe2c099b61aeffe10c71
Invoke config changed callbacks directly

- Issue:
If the app changes the config using setting API, the framework did not
invoke config changed callbacks.

- Solution:
In previous code, tts_config_mgr module can knows the config changes by
checking the difference between the values in memory and config file.
However, the values in memory and config file were the same if the app
uses the setting API. This is because the setting API sets the value to
both memory and the file.
So, this patch adds a new logic for invoking the callacks. Through this
patch, tts_config_mgr module calls the related callbacks in case the app
changes the config itself.

Change-Id: If2da13a32e8e12b321812586e4c4bb93fd5f769e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_mgr.c