ecore-drm2: Add API function to return list of output modes for a given output

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-05-11 09:26:52 -04:00
parent ad58670c56
commit ed58056e06
2 changed files with 21 additions and 0 deletions

View File

@ -451,6 +451,20 @@ EAPI void ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool ena
*/
EAPI void ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h);
/**
* Get a list of the modes supported on a given output
*
* @param output
*
* @return An Eina_List of the modes supported for this output
*
* @note The returned list should not be freed
*
* @ingroup Ecore_Drm2_Output_Group
* @since 1.18
*/
EAPI const Eina_List *ecore_drm2_output_modes_get(Ecore_Drm2_Output *output);
/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*

View File

@ -966,3 +966,10 @@ ecore_drm2_output_physical_size_get(Ecore_Drm2_Output *output, int *w, int *h)
if (w) *w = output->pw;
if (h) *h = output->ph;
}
EAPI const Eina_List *
ecore_drm2_output_modes_get(Ecore_Drm2_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
return output->modes;
}