ecore-drm: Add API function to return the drm device name

@feature: Add new API function to return the drm device name

NB: This will be used in the ecore_evas_drm code to set the
ecore_evas->name.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-12 09:26:43 +00:00
parent 2a90b4f23d
commit bdf00c28b7
2 changed files with 15 additions and 0 deletions

View File

@ -143,6 +143,7 @@ EAPI Eina_Bool ecore_drm_device_master_set(Ecore_Drm_Device *dev);
EAPI Eina_Bool ecore_drm_device_master_drop(Ecore_Drm_Device *dev);
EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev);
EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window);
EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev);
EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name);
EAPI Eina_Bool ecore_drm_tty_close(Ecore_Drm_Device *dev);

View File

@ -606,3 +606,17 @@ ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window)
dev->window = window;
}
/**
* TODO: Doxy
*
* @since 1.10
*/
EAPI const char *
ecore_drm_device_name_get(Ecore_Drm_Device *dev)
{
/* check for valid device */
if ((!dev) || (dev->drm.fd < 0)) return NULL;
return dev->drm.name;
}