display: display-state-transition: Relocate trans_table to core 50/293350/10
authorYunhee Seo <yuni.seo@samsung.com>
Wed, 17 May 2023 04:20:28 +0000 (13:20 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 30 May 2023 11:47:58 +0000 (20:47 +0900)
commite1a7b1c8ce3226eab1138441b248149c8eff7f11
tree1886239387a471758763449963075dfd3a8d5f28
parent1db15dae6801864bb0923d790e65dcb63e534830
display: display-state-transition: Relocate trans_table to core

trans_table is used for getting next display state according to event type.
It has following display state for a specific event in the current display state.

To get and set display state, these functions are added to below display-state-transition.
int display_state_transition_get_next_transition_display_state(enum state_t from_state, enum state_t *to_state, int evt_type);
int display_state_transition_set_transition_table_display_state(enum state_t display_state, enum state_t set_state, int evt_type);

Change-Id: I013a63b6059748b58db04e7b52e8366615c6b1ac
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-state-transition.c [new file with mode: 0644]
src/display/display-state-transition.h [new file with mode: 0644]