ecore-drm: Add API function to set the window we should send events

too.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-10 12:36:21 +00:00
parent 5ffa7cd23f
commit 42ed617302
2 changed files with 15 additions and 0 deletions

View File

@ -142,6 +142,7 @@ EAPI Eina_Bool ecore_drm_device_master_get(Ecore_Drm_Device *dev);
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 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

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