EAPI void ecore_drm2_device_close(Ecore_Drm2_Device *device);
/**
- * Free a given Ecore_Drm2_Device
- *
- * @param device
- *
- * @ingroup Ecore_Drm2_Device_Group
- * @since 1.18
- */
-EAPI void ecore_drm2_device_free(Ecore_Drm2_Device *device);
-
-/**
* Get the type of clock used by a given Ecore_Drm2_Device
*
* @param device
ecore_drm2_device_close(Ecore_Drm2_Device *device)
{
EINA_SAFETY_ON_NULL_RETURN(device);
- EINA_SAFETY_ON_TRUE_RETURN(device->fd < 0);
elput_input_shutdown(device->em);
elput_manager_close(device->em, device->fd);
-}
-
-EAPI void
-ecore_drm2_device_free(Ecore_Drm2_Device *device)
-{
- EINA_SAFETY_ON_NULL_RETURN(device);
-
if (_ecore_drm2_use_atomic)
_drm2_atomic_state_free(device->state);
output_err:
ecore_drm2_device_close(edata->dev);
open_err:
- ecore_drm2_device_free(edata->dev);
ecore_drm2_shutdown();
init_err:
return --_drm_init_count;
ecore_drm2_outputs_destroy(edata->dev);
ecore_drm2_device_close(edata->dev);
- ecore_drm2_device_free(edata->dev);
ecore_drm2_shutdown();
ecore_event_evas_shutdown();
EINA_LIST_FREE(handlers, h)