Summary: This adds a new API function to turn the name of a given Ecore_Drm_Output.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
*/
EAPI Eina_Stringshare *ecore_drm_output_make_get(Ecore_Drm_Output *output);
+/**
+ * Get the name of Ecore_Drm_Output
+ *
+ * This function will give the name of Ecore_Drm_Output
+ *
+ * @param output The Ecore_Drm_Output to get name for
+ * @return The name. Caller should free this return.
+ *
+ * @ingroup Ecore_Drm_Output_Group
+ * @since 1.15
+ */
+EAPI char *ecore_drm_output_name_get(Ecore_Drm_Output *output);
+
/**
* Set the dpms level of an Ecore_Drm_Output
*
return output->conn_id;
}
+
+EAPI char *
+ecore_drm_output_name_get(Ecore_Drm_Output *output)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
+
+ return strdup(output->name);
+}