ecore-drm: Add API function to return an output's crtc id

Summary: This adds an API function to return the crtc id of an output

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-08 10:59:35 -04:00 committed by Stefan Schmidt
parent 63ff8eaf3d
commit e18f82632d
2 changed files with 22 additions and 0 deletions

View File

@ -505,6 +505,20 @@ EAPI void ecore_drm_output_size_get(Ecore_Drm_Device *dev, int output, int *w, i
*/
EAPI void ecore_drm_outputs_geometry_get(Ecore_Drm_Device *dev, int *x, int *y, int *w, int *h);
/**
* Get the crtc id of an output
*
* This function will return the default crtc id for an output
*
* @param output The Ecore_Drm_Output to get the default crtc of
*
* @return The id of the default crtc for this output
*
* @ingroup Ecore_Drm_Output_Group
* @since 1.15
*/
EAPI unsigned int ecore_drm_output_crtc_id_get(Ecore_Drm_Output *output);
/**
* Get the crtc buffer of an output
*

View File

@ -1055,6 +1055,14 @@ ecore_drm_output_gamma_set(Ecore_Drm_Output *output, uint16_t size, uint16_t *r,
ERR("Failed to set output gamma: %m");
}
EAPI unsigned int
ecore_drm_output_crtc_id_get(Ecore_Drm_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
return output->crtc_id;
}
EAPI unsigned int
ecore_drm_output_crtc_buffer_get(Ecore_Drm_Output *output)
{