summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_outputs.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-02-21 12:16:31 -0500
committerChris Michael <cp.michael@samsung.com>2018-02-27 09:16:00 -0500
commitfc4f66c6c234d95d807342927044f5ce9276e9a9 (patch)
tree70bb995d4bac7c4ca78a5d1cafae09cf88d85fc6 /src/lib/ecore_drm2/ecore_drm2_outputs.c
parent9f63fac2d2df7689f3ce7b8a542d36c46cf64689 (diff)
ecore-drm2: Add API to get/set which output is relative to another
In order to know which output we should clone, we need a way to store/retrieve the output which should be cloned. This patch adds a small api we can use in randr config dialog to get/set that value. @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 3bb0ada0ac..d1f7ad0d07 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1668,3 +1668,17 @@ ecore_drm2_output_relative_mode_get(Ecore_Drm2_Output *output)
1668 EINA_SAFETY_ON_NULL_RETURN_VAL(output, ECORE_DRM2_RELATIVE_MODE_UNKNOWN); 1668 EINA_SAFETY_ON_NULL_RETURN_VAL(output, ECORE_DRM2_RELATIVE_MODE_UNKNOWN);
1669 return output->relative.mode; 1669 return output->relative.mode;
1670} 1670}
1671
1672EAPI void
1673ecore_drm2_output_relative_to_set(Ecore_Drm2_Output *output, const char *relative)
1674{
1675 EINA_SAFETY_ON_NULL_RETURN(output);
1676 eina_stringshare_replace(&output->relative.to, relative);
1677}
1678
1679EAPI const char *
1680ecore_drm2_output_relative_to_get(Ecore_Drm2_Output *output)
1681{
1682 EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
1683 return output->relative.to;
1684}