diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-05-04 14:06:31 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-05-07 14:39:45 -0400 |
commit | 2606735b394b9cfbf14f46edfe413c76aa872d7b (patch) | |
tree | 22cbc3705123521d355ae6f8622d171ee0652c4f | |
parent | 29362040b2a01e731d0dd7e3f52300a1d5ad8836 (diff) | |
download | efl-2606735b394b9cfbf14f46edfe413c76aa872d7b.tar.gz |
ecore-drm: Add API function to return the name of an output
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>
-rw-r--r-- | src/lib/ecore_drm/Ecore_Drm.h | 13 | ||||
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_output.c | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index 157d0b8f18..54e252e4e0 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h @@ -709,6 +709,19 @@ EAPI Eina_Stringshare *ecore_drm_output_model_get(Ecore_Drm_Output *output); 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 * * This function will set the DPMS level of an Ecore_Drm_Output diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index b564f10626..614abea519 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -1091,3 +1091,11 @@ ecore_drm_output_connector_id_get(Ecore_Drm_Output *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); +} |