display: Relocate low_battery_state() to reduce plugin duplication 64/292464/10
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 28 Apr 2023 06:02:46 +0000 (15:02 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 25 May 2023 01:54:07 +0000 (10:54 +0900)
commitd4023b019395e803237d345ee1eac3855ab6c936
tree197f46a7dbc223750bc6bcb7341545d54767bf53
parent7564bbf609f0107366d6716b469f234096a123bd
display: Relocate low_battery_state() to reduce plugin duplication

Remove and redefine low_battery_state function in plugins/display/core.c

This function is added to below display-misc.
bool display_misc_is_low_battery_state(int val)
-> This function checks that val parameter is low battery status or not.

Actually, this function should be located under the battery module.
During refactoring, this function will be relocated.

Change-Id: I2c5d1ddb5df7bba56c4ac88ddcb92b8d0e3a9335
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/display/display-misc.c [new file with mode: 0644]
src/display/display-misc.h [new file with mode: 0644]
src/display/plugin-common/core.h
src/display/plugin-common/display-dbus.c