summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2023-08-17 19:51:40 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2023-08-18 10:00:39 +0900
commit0ae8aa2f87c16319ceaa7efaa005fa14ac1001d8 (patch)
tree272ee422ff11e079ae3fb8c80a1103513a782026
parent913842514c326300feb34b50eba6e8e56e3b9719 (diff)
downloadlibsyscommon-0ae8aa2f87c16319ceaa7efaa005fa14ac1001d8.tar.gz
libsyscommon-0ae8aa2f87c16319ceaa7efaa005fa14ac1001d8.tar.bz2
libsyscommon-0ae8aa2f87c16319ceaa7efaa005fa14ac1001d8.zip
plugin-api: deviced: power: Add struct syscommon_plugin_deviced_power_trans_info
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>
-rw-r--r--src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h b/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h
index 95394c1..71f0b89 100644
--- a/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h
+++ b/src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h
@@ -73,6 +73,13 @@ enum {
#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"))