aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/Ecore_Drm2.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-02-06 09:07:26 -0500
committerChris Michael <cp.michael@samsung.com>2018-02-13 11:44:11 -0500
commita78dc2d8164692e984ad162f603f8b0d052934e9 (patch)
treecbdadec4973cddd1944570de03323483835816de /src/lib/ecore_drm2/Ecore_Drm2.h
parentecore-evas-drm: Include Evas_Internal header (diff)
downloadefl-a78dc2d8164692e984ad162f603f8b0d052934e9.tar.gz
ecore-drm2: Add API functions to get/set output relative mode
These API functions will be used inside Enlightenment in order to determine the proper extended screen size based on outputs relative position. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/Ecore_Drm2.h')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index bede4e5406..7904813c8c 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -39,6 +39,17 @@ typedef enum _Ecore_Drm2_Fb_Status
ECORE_DRM2_FB_STATUS_PLANE_RELEASE = 32,
} Ecore_Drm2_Fb_Status;
+typedef enum _Ecore_Drm2_Relative_Mode
+{
+ ECORE_DRM2_RELATIVE_MODE_UNKNOWN,
+ ECORE_DRM2_RELATIVE_MODE_NONE,
+ ECORE_DRM2_RELATIVE_MODE_CLONE,
+ ECORE_DRM2_RELATIVE_MODE_TO_LEFT,
+ ECORE_DRM2_RELATIVE_MODE_TO_RIGHT,
+ ECORE_DRM2_RELATIVE_MODE_TO_ABOVE,
+ ECORE_DRM2_RELATIVE_MODE_TO_BELOW
+} Ecore_Drm2_Relative_Mode;
+
/* opaque structure to represent a drm device */
typedef struct _Ecore_Drm2_Device Ecore_Drm2_Device;
@@ -791,6 +802,29 @@ EAPI void ecore_drm2_output_user_data_set(Ecore_Drm2_Output *o, void *data);
EAPI unsigned int ecore_drm2_output_subpixel_get(const Ecore_Drm2_Output *output);
/**
+ * Set the relative mode for an output
+ *
+ * @param output The output to set relative mode
+ * @param relative The relative mode to set
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.21
+ */
+EAPI void ecore_drm2_output_relative_mode_set(Ecore_Drm2_Output *output, Ecore_Drm2_Relative_Mode mode);
+
+/**
+ * Get the relative mode of an output
+ *
+ * @param output The output to retrieve relative mode for
+ *
+ * @return The relative mode of a given output
+ *
+ * @ingroup Ecore_Drm2_Output_Group
+ * @since 1.21
+ */
+EAPI Ecore_Drm2_Relative_Mode ecore_drm2_output_relative_mode_get(Ecore_Drm2_Output *output);
+
+/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*
* Functions that deal with setup of framebuffers