display: misc: Relocate stay_touchscreen_off getter and setter 67/292467/11
authorYunhee Seo <yuni.seo@samsung.com>
Wed, 3 May 2023 01:53:15 +0000 (10:53 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 25 May 2023 01:54:07 +0000 (10:54 +0900)
commit12847155a97449e084f6142e83f6fc36b9a4ec21
tree3548f0b5df9451b38eb6a5e14d5ff68365e8a796
parent5a05061c25175611bf96e0b949ab76aa24e875dd
display: misc: Relocate stay_touchscreen_off getter and setter

Remove and redefine set_stay_touchscreen_off() to reduce plugin duplication

These functions are added to below display-touchscreen.
void display_misc_set_stay_touchscreen_off(bool on)
-> This function sets stay_touchscreen_off variable
void display_misc_get_stay_touchscreen_off(bool *on)
-> This function gets stay_touchscreen_off value

Change-Id: I09df7229111442affab75c43e70ae2038f82c966
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/core.h [moved from src/display/plugin-common/core.h with 99% similarity]
src/display/display-misc.c
src/display/display-misc.h
src/display/plugin-common/display-dbus.c