From: Chanwoo Choi Date: Thu, 17 Aug 2023 05:44:43 +0000 (+0900) Subject: plugin-api: deviced: power: Add new DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK X-Git-Tag: accepted/tizen/unified/20230821.162308~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b99b480c3bf4e5f89eb92d66777c2c8ec2e2115;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git plugin-api: deviced: power: Add new DEVICED_POWER_ATTR_TUPLE2_SET_WAKELOCK 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 --- 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 010639b..4f05328 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 @@ -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,