power: subdivide power state
Introduce transient state, SUSPENDING/RESUMING and they have 3 variants
each, EARLY, NORMAL and LATE. As the deviced always follows these transient
states in order, those transient state help other processes synchronize
each other by registering callbacks on each transient state.
As the type of state has been subdivided, static ans transient, the
functions responsible for those types have also been subdivided.
For those static states, such as POWER_STATE_NORMAL,
- device_power_add_change_state_wait_callback
- device_power_remove_change_state_wait_callback
- device_power_change_state_wait_done
- device_power_change_state
For those transient states, such as POWER_STATE_TRANSIENT_RESUMING,
- device_power_add_transient_state_wait_callback
- device_power_remove_transient_state_wait_callback
- device_power_change_state_wait_done
In addition, the dbus signal name used by both capi-system-device and
the deviced has been moved to libsyscommon.
- DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_START
- DEVICED_SIGNAL_POWER_CHANGE_STATE_TO_NORMAL
- ...
Change-Id: I7b6d19ace2f2b73388cacc9d9344b717c0fde087
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>