diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-05-07 11:31:46 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-05-07 14:39:46 -0400 |
commit | 2145cb18c296b4269d52b57c000a9495ce8b71e1 (patch) | |
tree | b8ee70fc83bdacc0a8302752fb56d2e7b4b9bd7f /src/lib/ecore_drm/Ecore_Drm.h | |
parent | 03a242f263fecc7178928aa7bdb989335495b6a3 (diff) |
ecore-drm: Add API function to find an output given a name
Summary: This adds a new API function to find an Ecore_Drm_Output
which matches a given name.
@feature
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/Ecore_Drm.h')
-rw-r--r-- | src/lib/ecore_drm/Ecore_Drm.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index d0e97b5246..ad2ae4a9dd 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h | |||
@@ -880,6 +880,22 @@ EAPI Ecore_Drm_Output *ecore_drm_output_primary_get(Ecore_Drm_Device *dev); | |||
880 | */ | 880 | */ |
881 | EAPI void ecore_drm_output_crtc_size_get(Ecore_Drm_Output *output, int *width, int *height); | 881 | EAPI void ecore_drm_output_crtc_size_get(Ecore_Drm_Output *output, int *width, int *height); |
882 | 882 | ||
883 | /** | ||
884 | * Find an Ecore_Drm_Output which has the given name | ||
885 | * | ||
886 | * This function will loop all the existing outputs in Ecore_Drm_Device and | ||
887 | * return an output if one exists that matches the given name. | ||
888 | * | ||
889 | * @param dev The Ecore_Drm_Device to search | ||
890 | * @param name The Ecore_Drm_Output matching this name | ||
891 | * | ||
892 | * @return An Ecore_Drm_Output if one exists at these coordinates or NULL | ||
893 | * | ||
894 | * @ingroup Ecore_Drm_Device_Group | ||
895 | * @since 1.15 | ||
896 | */ | ||
897 | EAPI Ecore_Drm_Output *ecore_drm_device_output_name_find(Ecore_Drm_Device *dev, const char *name); | ||
898 | |||
883 | # ifdef __cplusplus | 899 | # ifdef __cplusplus |
884 | } | 900 | } |
885 | # endif | 901 | # endif |