ecore-drm2: Add API function to return connector type of an output

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
Chris Michael 2016-05-11 09:34:32 -04:00
parent bd2ab7de96
commit 1eb85aab57
2 changed files with 19 additions and 0 deletions

View File

@ -542,6 +542,18 @@ EAPI Eina_Bool ecore_drm2_output_connected_get(Ecore_Drm2_Output *output);
*/
EAPI Eina_Bool ecore_drm2_output_cloned_get(Ecore_Drm2_Output *output);
/**
* Get the connector type of a given output
*
* @param output
*
* @return An unsigned integer representing the type of connector for this output
*
* @ingroup Ecore_Drm2_Output_Group
* @since 1.18
*/
EAPI unsigned int ecore_drm2_output_connector_type_get(Ecore_Drm2_Output *output);
/**
* @defgroup Ecore_Drm2_Fb_Group Drm framebuffer functions
*

View File

@ -1062,3 +1062,10 @@ ecore_drm2_output_cloned_get(Ecore_Drm2_Output *output)
EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
return output->cloned;
}
EAPI unsigned int
ecore_drm2_output_connector_type_get(Ecore_Drm2_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
return output->conn_type;
}