From 78f8cede59a6c0375eca9bddf047b92fa373e3ee Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Fri, 18 Aug 2023 15:44:17 +0900 Subject: [PATCH] plugin-api: deviced: Add struct deviced_display_config Add display configuration structure that can be accessed by both display core and plugin. And the below enums also be added - enum deviced_dpms_type : Type that DPMS is working on top of. - enum deviced_display_orientation : Direction that display hardware is attached to. Change-Id: I2c36f4d38ce654d80843ff21cbf1f702c3c034c9 Signed-off-by: Youngjae Cho --- ...scommon-plugin-deviced-display-interface.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) 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 7f1ae86..0f9a961 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 @@ -29,6 +29,8 @@ extern "C" { #endif +#include + #define DEVICED_DISPLAY_ATTR_INT_GET_MAX_BRIGHTNESS (1ULL << 0) #define DEVICED_DISPLAY_ATTR_INT_GET_CURRENT_STATE (1ULL << 1) #define DEVICED_DISPLAY_ATTR_TUPLE2_SET_CURRENT_STATE (1ULL << 2) @@ -53,6 +55,41 @@ enum deviced_dpms_state { DEVICED_DPMS_DETACH, /* Display detached */ }; +enum deviced_dpms_type { + DEVICED_DPMS_TYPE_WINDOW_MANAGER, + DEVICED_DPMS_TYPE_NONE, +}; + +enum deviced_display_orientation { + DEVICED_DISPLAY_ORIENTATION_HORIZONTAL, + DEVICED_DISPLAY_ORIENTATION_VERTICAL, +}; + +struct deviced_display_config { + double lock_wait_time; + double longpress_interval; + double lightsensor_interval; + int lcdoff_timeout; + const int pm_default_brightness; + int brightness_change_step; + int lcd_always_on; + int dimming; + int framerate_app[4]; + int control_display; + int powerkey_doublepress; + int alpm_on; + int accel_sensor_on; + int continuous_sampling; + enum deviced_display_orientation display_init_direction; + int aod_enter_level; + bool aod_tsp; + bool timeout_enable; + bool input_support; + bool touch_wakeup; + bool display_on_usb_conn_changed; + enum deviced_dpms_type display_dpms_type; +}; + #define DEVICED_DISPLAY_SCREEN_TIMEOUT_INFINITE ((~0) >> 1) #ifdef __cplusplus -- 2.34.1