power: reloacte marking poweroff option 04/286004/1 accepted/tizen/7.0/unified/20230103.055617
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 23 Dec 2022 01:17:08 +0000 (10:17 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Mon, 26 Dec 2022 00:42:27 +0000 (00:42 +0000)
commitce7c360f4e0c8b8ae0075cffc9706abb5b011cb2
tree0e5c0b1a5e82176c7436c3b67b36ae702036817a
parent92c048d84c253927eeed9be0cfc7fe2691c1ca58
power: reloacte marking poweroff option

Poweroff option can be marked just on receiving the option from dbus
method. It is safer in that it prevents loss of option address due to
asynchronous process of power transition.

Change-Id: I77f7c81035d3281396c0aea0a8c96760f08d5334
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 470680f23c1c37d375238c43c7f7821977350814)
src/power/power-off.c
src/power/power-off.h
src/power/power.c