summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_outputs.c
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_outputs.c
parent45bffff5357634dcb46db0bc582c9016770c2bab (diff)
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_outputs.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 472c3c5f6b..79a22c5363 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1653,3 +1653,17 @@ ecore_drm2_output_pending_get(Ecore_Drm2_Output *output)
1653 1653
1654 return EINA_FALSE; 1654 return EINA_FALSE;
1655} 1655}
1656
1657EAPI void
1658ecore_drm2_output_relative_mode_set(Ecore_Drm2_Output *output, Ecore_Drm2_Relative_Mode mode)
1659{
1660 EINA_SAFETY_ON_NULL_RETURN(output);
1661 output->relative.mode = mode;
1662}
1663
1664EAPI Ecore_Drm2_Relative_Mode
1665ecore_drm2_output_relative_mode_get(Ecore_Drm2_Output *output)
1666{
1667 EINA_SAFETY_ON_NULL_RETURN_VAL(output, ECORE_DRM2_RELATIVE_MODE_UNKNOWN);
1668 return output->relative.mode;
1669}