Add struct syscommon_plugin_deviced_power_trans_info which contains the
power transition information.
[Detailed description]
struct syscommon_plugin_deviced_power_trans_info
- curr : Current power state
- next : Next power state for transition
- reason : Transition reason when changing the state from curr to next
- void *data : Passed data of transition information
Change-Id: I69450db85c4303f77f7675270a4a1890e0f98bbe
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
#define DEVICED_POWER_STATE_INDEX(state) (__builtin_ctzll(state))
+struct syscommon_plugin_deviced_power_trans_info {
+ u_int64_t curr;
+ u_int64_t next;
+ int reason;
+ const void *data;
+};
+
static inline u_int64_t syscommon_plugin_deviced_power_convert_to_power_state(const char *str)
{
if (MATCH(str, "start"))