diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2023-08-21 20:51:53 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2023-08-22 17:05:20 +0900 |
commit | 4f7cb8159fb52f2410d37b3d6f77e65966609149 (patch) | |
tree | b5cb316c46623fa38217c820445a8c916b8d9c82 | |
parent | c5505e9edea2724f7991c5b6aec0a73da4798762 (diff) | |
download | libsyscommon-4f7cb8159fb52f2410d37b3d6f77e65966609149.tar.gz libsyscommon-4f7cb8159fb52f2410d37b3d6f77e65966609149.tar.bz2 libsyscommon-4f7cb8159fb52f2410d37b3d6f77e65966609149.zip |
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 <y0.cho@samsung.com>
-rw-r--r-- | src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 |