summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/Ecore_Drm.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-13 14:41:12 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-13 14:42:15 -0400
commitbcf3b442dd3f4683dd6b634615ed6563e7a2c9d1 (patch)
treee2cb663e99a694f8d303a78c2176ad6302427f9f /src/lib/ecore_drm/Ecore_Drm.h
parentd9b59f34d2bba43ba6b352789042199b9f746c47 (diff)
ecore-drm: Add API function to set a new mode on an output
Summary: This adds a new API function (ecore_drm_output_mode_set) that we can use from within RandR code to set the resolution of an output (or disable an output if NULL is passed in). @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/Ecore_Drm.h')
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index b26efa1ede..47c60048cf 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -923,6 +923,23 @@ EAPI Ecore_Drm_Output *ecore_drm_device_output_name_find(Ecore_Drm_Device *dev,
923 */ 923 */
924EAPI Eina_Bool ecore_drm_output_possible_crtc_get(Ecore_Drm_Output *output, unsigned int crtc); 924EAPI Eina_Bool ecore_drm_output_possible_crtc_get(Ecore_Drm_Output *output, unsigned int crtc);
925 925
926/**
927 * Set a given mode to be used on an Ecore_Drm_Output
928 *
929 * This function will set the given mode to be used on a given Ecore_Drm_Output
930 *
931 * @param output The Ecore_Drm_Output to set the mode on
932 * @param mode A valid Ecore_Drm_Output_Mode to set or NULL to disable the output
933 * @param X The X position to set this output to
934 * @param Y The Y position to set this output to
935 *
936 * @return EINA_TRUE on success, EINA_FALSE on failure
937 *
938 * @ingroup Ecore_Drm_Output_Group
939 * @since 1.15
940 */
941EAPI Eina_Bool ecore_drm_output_mode_set(Ecore_Drm_Output *output, Ecore_Drm_Output_Mode *mode, int x, int y);
942
926# ifdef __cplusplus 943# ifdef __cplusplus
927} 944}
928# endif 945# endif