plugin-api: deviced: Add attribute for custom brightness 10/297510/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 21 Aug 2023 06:49:29 +0000 (15:49 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 21 Aug 2023 06:49:29 +0000 (15:49 +0900)
New attribute:
 - id: DEVICED_DISPLAY_ATTR_INT_CUSTOM_BRIGHTNESS
 - type: SYSCOMMON_RESMAN_DATA_TYPE_INT
 - setter: O
 - getter: O
 It gets whether custom brightness is set or not. And it enables the
 custom  brightness when it sets attrbute by a value other than 0.

Change-Id: I6ba2c27f82d76933633e3322248d99fd2bc6df35
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h

index be0031695cfb0577a7899a985f6f72dc434ba569..6f1dfac0de1b2e9713b6dc195623966700e06e61 100644 (file)
@@ -37,6 +37,7 @@ extern "C" {
 #define DEVICED_DISPLAY_ATTR_TUPLE2_SET_CURRENT_STATE          (1ULL << 2)
 #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)
 
 enum syscommon_deviced_display_state {
        SYSCOMMON_DEVICED_DISPLAY_STATE_START,