display: Move plugin struct display_plugin to core 24/290324/4
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 23 Mar 2023 00:54:16 +0000 (09:54 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 27 Mar 2023 04:51:06 +0000 (13:51 +0900)
commitec707d53e741aae6ea108a7bf9c16d72d2acc7b3
tree99ad5d5ee217eb996e83a4a2e76ca49b77662d68
parent5c624f2e0582f024806f21b78174f39a27608e51
display: Move plugin struct display_plugin to core

The struct display_plugin has been relocated:
 - src/display/plugin-common/display-ops.h
   => src/display/display-plugin.h

Added wrapper for each member variable/function of the structure.
Those wrapper access/invoke matching plugin variable/function if exist.
 - display_plugin_handle()
 - display_plugin_pm_lock_internal()
 - display_plugin_pm_unlock_internal()
 - display_plugin_pm_change_internal()
 - display_plugin_update_pm_setting()
 - display_plugin_get_lock_screen_state()
 - display_plugin_get_system_wakeup_flag()
 - display_plugin_set_system_wakeup_flag()
 - display_plugin_device_flags_to_string()
 - display_plugin_auto_brightness_control()

The structure's member would grow as more plugin code will move to
the display core. Later, this struct display_plugin and wrapper can
be replaced by plugin-api-deviced.

Change-Id: I2ebc6b77b647764cbc1d4ceb55d17fdc2fee6af1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
24 files changed:
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/battery/battery-time.c
src/battery/lowbat-handler.c
src/battery/power-supply.c
src/display/display-plugin.c [new file with mode: 0644]
src/display/display-plugin.h [new file with mode: 0644]
src/display/display.c
src/display/plugin-common/display-ops.h
src/display/plugin-common/poll.c
src/display/plugin-common/poll.h
src/extcon/cradle.c
src/extcon/earjack.c
src/led/touch-key.c
src/shared/apps.c
src/shared/plugin.c
src/time/time-handler.c
src/touchscreen/touchscreen.c
src/usb-gadget/usb-gadget.c
src/usb-host/usb-host.c
tests/deviced-common-private-test/CMakeLists.txt
tests/deviced-common-private-test/test-mock.c