Drm Library Init and Shutdown Functions

Functions
Drm Library Init and Shutdown Functions

Functions that start and shutdown the Ecore_Drm Library. More...

## Functions
int | ecore_drm_init (void)
| Initialize the Ecore_Drm library. More...
int | ecore_drm_shutdown (void)
| Shutdown the Ecore_Drm library. More...
EAPI int | ecore_drm2_event_handle (Ecore_Drm2_Device *dev, Ecore_Drm2_Context *drmctx)
| Read and process pending Drm events. More...

## Detailed Description

Functions that start and shutdown the Ecore_Drm Library.

## Function Documentation

## ◆ ecore_drm_init()

int ecore_drm_init | ( | void |  | ) |

Initialize the Ecore_Drm library.

Returns
  The number of times the library has been initialized without being shut down. 0 is returned if an error occurs.

References ecore_event_init(), ecore_init(), ecore_shutdown(), eeze_init(), eina_init(), eina_log_domain_register(), EINA_LOG_ERR, and eina_shutdown().

## ◆ ecore_drm_shutdown()

int ecore_drm_shutdown | ( | void |  | ) |

Shutdown the Ecore_Drm library.

Returns
  The number of times the library has been initialized without being shutdown. 0 is returned if an error occurs.

References ecore_event_type_flush, and ERR.

## ◆ ecore_drm2_event_handle()

EAPI int ecore_drm2_event_handle | ( | Ecore_Drm2_Device * | dev,
|  | Ecore_Drm2_Context * | drmctx
| ) |  |

Read and process pending Drm events.

Parameters

  dev | drm device
  drmctx |

Returns
  0 on success, -1 otherwise

Note
  : Do not ever use this function in applications !!! This is a special-purpose API function and should not be used by application developers.

Since
  1.19

References EINA_SAFETY_ON_NULL_RETURN_VAL.