forked from enlightenment/efl
ecore-drm: Add API function to return if a given output has a backlight
Summary: This adds a new API function to call so we can check if a given Ecore_Drm_Output has a backlight @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
4d2290847f
commit
130ad6d60f
|
@ -812,6 +812,18 @@ EAPI Eina_Bool ecore_drm_output_connected_get(Ecore_Drm_Output *output);
|
|||
*/
|
||||
EAPI unsigned int ecore_drm_output_connector_type_get(Ecore_Drm_Output *output);
|
||||
|
||||
/**
|
||||
* Get if a given output has a backlight
|
||||
*
|
||||
* @param output The Ecore_Drm_Output to get the backlight of
|
||||
*
|
||||
* @return EINA_TRUE if this output has a backlight, EINA_FALSE otherwise
|
||||
*
|
||||
* @ingroup Ecore_Drm_Output_Group
|
||||
* @since 1.15
|
||||
*/
|
||||
EAPI Eina_Bool ecore_drm_output_backlight_get(Ecore_Drm_Output *output);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1118,3 +1118,10 @@ ecore_drm_output_connector_type_get(Ecore_Drm_Output *output)
|
|||
|
||||
return output->conn_type;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_drm_output_backlight_get(Ecore_Drm_Output *output)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
|
||||
return (output->backlight != NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue