plugin-api: deviced: Add struct deviced_display_config 37/297437/1
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 18 Aug 2023 06:44:17 +0000 (15:44 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 18 Aug 2023 07:24:52 +0000 (16:24 +0900)
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>
src/plugin-api/deviced/include/syscommon-plugin-deviced-display-interface.h

index 7f1ae86149c978b1055751b00769c3bedac8e745..0f9a9619ddc9e90ae973dc525f7b91081170c232 100644 (file)
@@ -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