power: refactor power operations 53/273253/5
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 1 Apr 2022 08:25:40 +0000 (17:25 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 11 May 2022 02:51:01 +0000 (11:51 +0900)
commitb7c7cb5e26b13fd8f0b885daf08e09428aa998f1
tree4f92f45730ece5319d587da8bad2932d68e495aa
parenteaad5947a1d52f17f958a3e18f318167b93ecc26
power: refactor power operations

 Fix wake lock/unlock operation to have prefix of "power". And it
replaces indirect invocation through device_notify(), which is often
in iot-headless.
 Add functions for add/remove poweroff wait for internal usage. It
is similar to the existing add/remove dbus methods, but only differs
in that the function can be invoked by the deviced itself.

Change-Id: Ide3ceb5f894b376901637992d66401a110eafbf0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
12 files changed:
plugins/iot-headed/display/core.c
plugins/iot-headless/power/power-dbus.c
plugins/iot-headless/power/power-state-manager.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/display/core.h
src/power/power-control.c
src/power/power-control.h
src/power/power-handler.c
src/power/power-handler.h
src/shared/device-notifier.h