plugin-api: deviced: power: Add new DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK 59/297359/2
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 17 Aug 2023 05:44:43 +0000 (14:44 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 17 Aug 2023 09:42:03 +0000 (18:42 +0900)
DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK attribute provides the
setter function to acquire the wakelock in order to prevent the
suspending.

- attr id   : DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK
- setter    : O
- getter    : X
- 1st param : Event ID
- 2nd param : Timeout to release the wakelock count

Change-Id: If0daee6ffc53838313a661feedd5b2fae45af136
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/plugin-api/deviced/include/syscommon-plugin-deviced-power-interface.h

index 010639b..4f05328 100644 (file)
@@ -32,6 +32,7 @@ extern "C" {
 #define DEVICED_POWER_ATTR_SET_UINT64_4_CURRENT_STATE  (1ULL << 0)
 #define DEVICED_POWER_ATTR_UINT64_CURRENT_STATE                (1ULL << 1)
 #define DEVICED_POWER_ATTR_INT_WAKEUP_REASON           (1ULL << 2)
+#define DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK         (1ULL << 3)
 
 enum {
        DEVICED_POWER_STATE_MIN_INDEX,