ecore-drm: Add an API function to return the connector id of an output

Summary: This adds an API function to return the connector id of a
given output.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-04-08 11:01:52 -04:00 committed by Stefan Schmidt
parent 4a1cbeb258
commit a5d180b282
2 changed files with 22 additions and 0 deletions

View File

@ -533,6 +533,20 @@ EAPI unsigned int ecore_drm_output_crtc_id_get(Ecore_Drm_Output *output);
*/
EAPI unsigned int ecore_drm_output_crtc_buffer_get(Ecore_Drm_Output *output);
/**
* Get the connector id of an output
*
* This function will return the default connector id for an output
*
* @param output The Ecore_Drm_Output to get the default connector of
*
* @return The id of the default connector id for this output
*
* @ingroup Ecore_Drm_Output_Group
* @since 1.15
*/
EAPI unsigned int ecore_drm_output_connector_id_get(Ecore_Drm_Output *output);
/* TODO: Doxy */
EAPI Eina_Bool ecore_drm_inputs_create(Ecore_Drm_Device *dev);
EAPI void ecore_drm_inputs_destroy(Ecore_Drm_Device *dev);

View File

@ -1080,3 +1080,11 @@ ecore_drm_output_crtc_buffer_get(Ecore_Drm_Output *output)
return id;
}
EAPI unsigned int
ecore_drm_output_connector_id_get(Ecore_Drm_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
return output->conn_id;
}