summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/Ecore_Drm.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-05 09:12:25 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-07 14:39:46 -0400
commit1ab4975491f184f11b4c6407218669805a29894e (patch)
treeb24a4b2c72c54cbf167b3b96ec37c79fd85e986e /src/lib/ecore_drm/Ecore_Drm.h
parent34664306a99100cdcebcba9b163d2d28ee3d1350 (diff)
ecore-drm: Add API function to return output modes
Summary: This adds a new API function to return a list of modes supported on a given output @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.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index e2b79a0567..2177b3f49f 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -153,8 +153,14 @@ struct _Ecore_Drm_Event_Output
153/* opaque structure to represent a drm device */ 153/* opaque structure to represent a drm device */
154typedef struct _Ecore_Drm_Device Ecore_Drm_Device; 154typedef struct _Ecore_Drm_Device Ecore_Drm_Device;
155 155
156/* opaque structure to represent a drm output mode */ 156/* structure to represent a drm output mode */
157typedef struct _Ecore_Drm_Output_Mode Ecore_Drm_Output_Mode; 157typedef struct _Ecore_Drm_Output_Mode
158{
159 unsigned int flags;
160 int width, height;
161 unsigned int refresh;
162 drmModeModeInfo info;
163} Ecore_Drm_Output_Mode;
158 164
159/* opaque structure to represent a drm output */ 165/* opaque structure to represent a drm output */
160typedef struct _Ecore_Drm_Output Ecore_Drm_Output; 166typedef struct _Ecore_Drm_Output Ecore_Drm_Output;
@@ -836,6 +842,20 @@ EAPI Eina_Bool ecore_drm_output_backlight_get(Ecore_Drm_Output *output);
836 */ 842 */
837EAPI char *ecore_drm_output_edid_get(Ecore_Drm_Output *output); 843EAPI char *ecore_drm_output_edid_get(Ecore_Drm_Output *output);
838 844
845/**
846 * Get a list of the modes supported on a given output
847 *
848 * @param output The Ecore_Drm_Output to get the modes for
849 *
850 * @return An Eina_List of the modes supported for this output
851 *
852 * @note The returned list should not be freed
853 *
854 * @ingroup Ecore_Drm_Output_Group
855 * @since 1.15
856 */
857EAPI Eina_List *ecore_drm_output_modes_get(Ecore_Drm_Output *output);
858
839#ifdef __cplusplus 859#ifdef __cplusplus
840} 860}
841#endif 861#endif