Functions
Device manipulation functions

Functions that deal with finding, opening, closing, and otherwise using the DRM device itself. More...

Functions

Ecore_Drm_Deviceecore_drm_device_find (const char *name, const char *seat)
 Find a drm device in the system. More...
 
void ecore_drm_device_free (Ecore_Drm_Device *dev)
 Free an Ecore_Drm_Device. More...
 
Eina_Bool ecore_drm_device_open (Ecore_Drm_Device *dev)
 Open an Ecore_Drm_Device. More...
 
Eina_Bool ecore_drm_device_close (Ecore_Drm_Device *dev)
 Close an Ecore_Drm_Device. More...
 
Eina_Bool ecore_drm_device_master_get (Ecore_Drm_Device *dev)
 Get if a given Ecore_Drm_Device is master. More...
 
Eina_Bool ecore_drm_device_master_set (Ecore_Drm_Device *dev)
 Set a given Ecore_Drm_Device to master. More...
 
Eina_Bool ecore_drm_device_master_drop (Ecore_Drm_Device *dev)
 Tell a given Ecore_Drm_Device to stop being master. More...
 
int ecore_drm_device_fd_get (Ecore_Drm_Device *dev)
 Get the file descriptor of Ecore_Drm_Device. More...
 
void ecore_drm_device_window_set (Ecore_Drm_Device *dev, unsigned int window)
 Set the window of Ecore_Drm_Device. More...
 
const char * ecore_drm_device_name_get (Ecore_Drm_Device *dev)
 Get the name of the Ecore_Drm_Device. More...
 

Detailed Description

Functions that deal with finding, opening, closing, and otherwise using the DRM device itself.

Function Documentation

Ecore_Drm_Device* ecore_drm_device_find ( const char *  name,
const char *  seat 
)

Find a drm device in the system.

Parameters
nameThe name of the device to find. If NULL, this function will search for the default drm device.
seatThe name of the seat where this device may be found. If NULL, this function will use a default seat name 'seat0'.
Returns
An opaque Ecore_Drm_Device structure representing the card.

References DBG, eeze_udev_find_by_type(), eeze_udev_syspath_get_devpath(), eeze_udev_syspath_get_parent_filtered(), eeze_udev_syspath_get_property(), eeze_udev_syspath_get_sysattr(), eeze_udev_syspath_get_sysnum(), EEZE_UDEV_TYPE_DRM, EINA_FALSE, EINA_LIST_FOREACH, EINA_LIST_FREE, eina_stringshare_add(), eina_stringshare_del(), and EINA_TRUE.

void ecore_drm_device_free ( Ecore_Drm_Device dev)

Free an Ecore_Drm_Device.

This function will cleanup and free any previously allocated Ecore_Drm_Device.

Parameters
devThe Ecore_Drm_Device to free

References ecore_drm_output_free(), EINA_LIST_FREE, and eina_stringshare_del().

Eina_Bool ecore_drm_device_open ( Ecore_Drm_Device dev)

Open an Ecore_Drm_Device.

This function will open an existing Ecore_Drm_Device for use.

Parameters
devThe Ecore_Drm_Device to try and open
Returns
EINA_TRUE on success, EINA_FALSE on failure

References DBG, ECORE_FD_READ, ecore_idle_enterer_add(), ecore_main_fd_handler_add(), EINA_FALSE, EINA_TRUE, and ERR.

Eina_Bool ecore_drm_device_close ( Ecore_Drm_Device dev)

Close an Ecore_Drm_Device.

This function will close a previously opened Ecore_Drm_Device

Parameters
devThe Ecore_Drm_Device to free
Returns
EINA_TRUE on success, EINA_FALSE on failure

References ecore_main_fd_handler_del(), EINA_FALSE, and EINA_TRUE.

Eina_Bool ecore_drm_device_master_get ( Ecore_Drm_Device dev)

Get if a given Ecore_Drm_Device is master.

This function will check if the given drm device is set to master

Parameters
devThe Ecore_Drm_Device to check
Returns
EINA_TRUE if device is master, EINA_FALSE otherwise

References EINA_FALSE, and EINA_TRUE.

Eina_Bool ecore_drm_device_master_set ( Ecore_Drm_Device dev)

Set a given Ecore_Drm_Device to master.

This function will attempt to set a given drm device to be master

Parameters
devThe Ecore_Drm_Device to set
Returns
EINA_TRUE on success, EINA_FALSE on failure

References DBG, EINA_FALSE, and EINA_TRUE.

Eina_Bool ecore_drm_device_master_drop ( Ecore_Drm_Device dev)

Tell a given Ecore_Drm_Device to stop being master.

This function will attempt to ask a drm device to stop being master

Parameters
devThe Ecore_Drm_Device to set
Returns
EINA_TRUE on success, EINA_FALSE on failure

References DBG, EINA_FALSE, and EINA_TRUE.

int ecore_drm_device_fd_get ( Ecore_Drm_Device dev)

Get the file descriptor of Ecore_Drm_Device.

This function will get the file descriptor of drm device

Parameters
devThe Ecore_Drm_Device to get
Returns
fd value on success, -1 on failure
void ecore_drm_device_window_set ( Ecore_Drm_Device dev,
unsigned int  window 
)

Set the window of Ecore_Drm_Device.

This function will set the window for given drm device

Parameters
devThe Ecore_Drm_Device for which window is set
windowThe window to set
Since
1.10
const char* ecore_drm_device_name_get ( Ecore_Drm_Device dev)

Get the name of the Ecore_Drm_Device.

This function will return the name of Ecore_Drm_Device

Parameters
devThe Ecore_Drm_Device to get name
Returns
device name on success, NULL on failure
Since
1.10