From: Youngjae Cho Date: Mon, 21 Aug 2023 11:51:53 +0000 (+0900) Subject: plugin-api: deviced: Add attribute for display actor capability X-Git-Tag: accepted/tizen/unified/20230823.021351~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f7cb8159fb52f2410d37b3d6f77e65966609149;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git plugin-api: deviced: Add attribute for display actor capability New attribute: - id: DEVICED_DISPLAY_ATTR_UINT64_GET_ACTOR_CAPABILITY - type: SYSCOMMON_RESMAN_DATA_TYPE_UINT64_WITH_2_USER_DATA - setter: X - getter: O - 1st param: syscommon_deviced_display_actor_id - 2nd param: syscommon_deviced_display_capability It finds whether an actor id has an capability. New attribute: - id: DEVICED_DISPLAY_ATTR_TUPLE3_SET_ACTOR_CAPABILITY - type: SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64_UINT64 - setter: O - getter: X - 1st param: syscommon_deviced_display_actor_id - 2nd param: syscommon_deviced_display_capability - 3rd param: 0: reset, 1: set It sets/resets capability of an actor id. Change-Id: Ib63c31f10c5180b48cd677be1d6e3e11538580aa Signed-off-by: Youngjae Cho --- diff --git a/src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h b/src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h index 6f1dfac..b53329a 100644 --- a/src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h +++ b/src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h @@ -38,6 +38,8 @@ extern "C" { #define DEVICED_DISPLAY_ATTR_INT_DPMS_STATE (1ULL << 3) #define DEVICED_DISPLAY_ATTR_TUPLE2_SET_DISPLAY_DIRECT (1ULL << 4) #define DEVICED_DISPLAY_ATTR_INT_CUSTOM_BRIGHTNESS (1ULL << 5) +#define DEVICED_DISPLAY_ATTR_UINT64_GET_ACTOR_CAPABILITY (1ULL << 6) +#define DEVICED_DISPLAY_ATTR_TUPLE3_SET_ACTOR_CAPABILITY (1ULL << 7) enum syscommon_deviced_display_state { SYSCOMMON_DEVICED_DISPLAY_STATE_START, @@ -102,6 +104,25 @@ struct syscommon_deviced_display_config { enum syscommon_deviced_dpms_type display_dpms_type; }; +enum syscommon_deviced_display_actor_id { + SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY = 1, + SYSCOMMON_DEVICED_DISPLAY_ACTOR_MENU_KEY, + SYSCOMMON_DEVICED_DISPLAY_ACTOR_API, + SYSCOMMON_DEVICED_DISPLAY_ACTOR_GESTURE, +}; + +struct syscommon_deviced_display_actor_ops { + enum syscommon_deviced_display_actor_id id; + unsigned int caps; +}; + +enum syscommon_deviced_display_capability { + SYSCOMMON_DEVICED_DISPLAY_CAPA_BRIGHTNESS = 1 << 0, + SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON = 1 << 1, + SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDOFF = 1 << 2, + SYSCOMMON_DEVICED_DISPLAY_CAPA_POWEROFF = 1 << 3, +}; + #define DEVICED_DISPLAY_SCREEN_TIMEOUT_INFINITE ((~0) >> 1) #ifdef __cplusplus