power: add device_power_change_state() 32/275732/5 accepted/tizen/unified/20220601.141615 submit/tizen/20220531.085748
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 31 May 2022 05:03:30 +0000 (14:03 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 31 May 2022 08:30:10 +0000 (17:30 +0900)
commitf7474d115c92f18bd1f447414620aef428258431
tree828e3337a14f37b2674ad831d99414ee8ba9cd9f
parentb660609f30ff82224e35d95244249af5a1b20600
power: add device_power_change_state()

The API, device_power_change_state(), send a request to deviced for
changing power state. It simply sends request and receives result of
the request. If the changed state is sleep/poweroff/reboot, then the
ongoing async callback might be ceased. To ensure the whole execution
of subroutine, use device_power_add_change_state_wait_callback().

Change-Id: Id7479a08d56505a0bc6bfba3e9971cb635e1276e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/power-internal.h
src/power-internal.c