summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/Ecore_Drm.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-11 12:37:24 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-12 08:57:47 -0400
commit8a3441dfe9f2c59586498b41cc87fc26288b7d06 (patch)
tree26b9e3fac1f5cb012f3e529758ac7759db9eb65b /src/lib/ecore_drm/Ecore_Drm.h
parent22ef03cd5332cb5687b6398fb696292e3d0f7ae7 (diff)
ecore-drm: Add API function to test if an output can go on a given crtc
Summary: This adds a new API function to test if a given Ecore_Drm_Output can be used on a given crtc. This is needed for DRM RandR support @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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index 481da42f15..f468b56c3f 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -906,6 +906,22 @@ EAPI void ecore_drm_output_crtc_size_get(Ecore_Drm_Output *output, int *width, i
906 */ 906 */
907EAPI Ecore_Drm_Output *ecore_drm_device_output_name_find(Ecore_Drm_Device *dev, const char *name); 907EAPI Ecore_Drm_Output *ecore_drm_device_output_name_find(Ecore_Drm_Device *dev, const char *name);
908 908
909/**
910 * Get if an Ecore_Drm_Output can be used on a given crtc
911 *
912 * This function will loop the possible crtcs of an encoder to determine if
913 * a given output can be assigned to a given crtc
914 *
915 * @param output The Ecore_Drm_Output to test if can be used on crtc
916 * @param crtc The crtc to test an Ecore_Drm_Output against
917 *
918 * @return EINA_TRUE if the output can be assigned to given crtc, EINA_FALSE otherwise
919 *
920 * @ingroup Ecore_Drm_Output_Group
921 * @since 1.15
922 */
923EAPI Eina_Bool ecore_drm_output_possible_crtc_get(Ecore_Drm_Output *output, unsigned int crtc);
924
909# ifdef __cplusplus 925# ifdef __cplusplus
910} 926}
911# endif 927# endif