devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4d2290847fa921e3cb42a9fe45c1978c7c2d9eef
commit 4d2290847fa921e3cb42a9fe45c1978c7c2d9eef Author: Chris Michael <cp.mich...@samsung.com> Date: Mon May 4 14:26:47 2015 -0400 ecore-drm: Add API function to return the connector type of a given output Summary: This adds a new API function to return the connector type of an Ecore_Drm_Output @feature Signed-off-by: Chris Michael <cp.mich...@samsung.com> --- src/lib/ecore_drm/Ecore_Drm.h | 12 ++++++++++++ src/lib/ecore_drm/ecore_drm_output.c | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index e5c2972..319d007 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h @@ -800,6 +800,18 @@ EAPI void ecore_drm_screen_size_range_get(Ecore_Drm_Device *dev, int *minw, int */ EAPI Eina_Bool ecore_drm_output_connected_get(Ecore_Drm_Output *output); +/** + * Get the connector type of a given Ecore_Drm_Output + * + * @param output The Ecore_Drm_Output to get the connector type of + * + * @return An unsigned integer representing the type of connector for this output + * + * @ingroup Ecore_Drm_Output_Group + * @since 1.15 + */ +EAPI unsigned int ecore_drm_output_connector_type_get(Ecore_Drm_Output *output); + #ifdef __cplusplus } #endif diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index a767b31..78882d6 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -1110,3 +1110,11 @@ ecore_drm_output_connected_get(Ecore_Drm_Output *output) return output->connected; } + +EAPI unsigned int +ecore_drm_output_connector_type_get(Ecore_Drm_Output *output) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0); + + return output->conn_type; +} --