summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-04-08 11:01:52 -0400
committerChris Michael <cp.michael@samsung.com>2015-04-08 14:03:49 -0400
commitbcdec3c57c73d923ffcebafe150f4f318b41ec05 (patch)
treef0f3cebdf579a01df120b5718d989712cefe11bd
parent9b4511d6beda8bbf80fbbdad50b9ea03e86eb18f (diff)
downloadefl-bcdec3c57c73d923ffcebafe150f4f318b41ec05.tar.gz
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>
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h14
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c8
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index 1ebc2da6fd..b28e7f15ff 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -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);
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 9ea0e3144d..67bd68f56d 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -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;
+}