display: Relocate __device_flags_to_string() from plugins to core 71/294871/4
authorYunhee Seo <yuni.seo@samsung.com>
Wed, 28 Jun 2023 04:09:03 +0000 (13:09 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 29 Jun 2023 04:56:37 +0000 (13:56 +0900)
commitf359050bfbfbf751e56464ae031cbb21285f248d
tree8698f50acdfd9a21a17e06af607b12f50bb5e2c6
parente54c6680644995b3a29c9f6d856fda0f2faed07b
display: Relocate __device_flags_to_string() from plugins to core

__device_flags_to_string() is used for getting string name according to device_flags.
These functions have same logic, thus it is relocated to display-util.

This function is added to display-util.
- int display_util_get_device_flags_name(enum device_flags flags, const char **flag_name);
    -> It replaces __device_flags_to_string().

Change-Id: Ia84ae6d7ff71419e22b700c12a7bca4e76413293
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-plugin.c
src/display/display-plugin.h
src/display/display-signal.c
src/display/display-util.c [new file with mode: 0644]
src/display/display-util.h [new file with mode: 0644]