forked from enlightenment/efl
ecore-drm2: Add API function to return available crtcs
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
0c0dd22b5f
commit
f3b7672551
|
@ -228,6 +228,19 @@ EAPI void ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int w
|
|||
*/
|
||||
EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h);
|
||||
|
||||
/**
|
||||
* Get the crtcs of a given device
|
||||
*
|
||||
* @param device
|
||||
* @param num
|
||||
*
|
||||
* @return The crtcs of this given device or NULL on failure
|
||||
*
|
||||
* @ingroup Ecore_Drm2_Device_Group
|
||||
* @since 1.18
|
||||
*/
|
||||
EAPI unsigned int *ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *num);
|
||||
|
||||
/**
|
||||
* @defgroup Ecore_Drm2_Output_Group Drm output functions
|
||||
*
|
||||
|
|
|
@ -259,3 +259,12 @@ ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h)
|
|||
|
||||
elput_input_pointer_max_set(device->em, w, h);
|
||||
}
|
||||
|
||||
EAPI unsigned int *
|
||||
ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *num)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(device, NULL);
|
||||
|
||||
if (num) *num = device->num_crtcs;
|
||||
return device->crtcs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue