summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-04 14:26:47 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-07 14:39:46 -0400
commit4d2290847fa921e3cb42a9fe45c1978c7c2d9eef (patch)
tree53efdcfb2a9567cab5b2b249aadd4efc503196f2 /src/lib/ecore_drm
parent3aee7d1b6faa1641bb045e0618920aaf8f286359 (diff)
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.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h12
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c8
2 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index e5c2972a0d..319d007047 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
800 */ 800 */
801EAPI Eina_Bool ecore_drm_output_connected_get(Ecore_Drm_Output *output); 801EAPI Eina_Bool ecore_drm_output_connected_get(Ecore_Drm_Output *output);
802 802
803/**
804 * Get the connector type of a given Ecore_Drm_Output
805 *
806 * @param output The Ecore_Drm_Output to get the connector type of
807 *
808 * @return An unsigned integer representing the type of connector for this output
809 *
810 * @ingroup Ecore_Drm_Output_Group
811 * @since 1.15
812 */
813EAPI unsigned int ecore_drm_output_connector_type_get(Ecore_Drm_Output *output);
814
803#ifdef __cplusplus 815#ifdef __cplusplus
804} 816}
805#endif 817#endif
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index a767b31481..78882d69e2 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)
1110 1110
1111 return output->connected; 1111 return output->connected;
1112} 1112}
1113
1114EAPI unsigned int
1115ecore_drm_output_connector_type_get(Ecore_Drm_Output *output)
1116{
1117 EINA_SAFETY_ON_NULL_RETURN_VAL(output, 0);
1118
1119 return output->conn_type;
1120}