summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2023-08-18 15:44:17 +0900
committerYoungjae Cho <y0.cho@samsung.com>2023-08-18 16:24:52 +0900
commit78f8cede59a6c0375eca9bddf047b92fa373e3ee (patch)
tree1fa179695b27a388b2a87fdf43d68e4a0f5cf13d
parent01b6308b10000b0f28bddc6100d5addc2d0e001e (diff)
downloadlibsyscommon-78f8cede59a6c0375eca9bddf047b92fa373e3ee.tar.gz
libsyscommon-78f8cede59a6c0375eca9bddf047b92fa373e3ee.tar.bz2
libsyscommon-78f8cede59a6c0375eca9bddf047b92fa373e3ee.zip
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 <y0.cho@samsung.com>
-rw-r--r--src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h37
1 files changed, 37 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 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 <stdbool.h>
+
#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