ecore-drm: Add API function to set the window we should send events
authorChris Michael <cp.michael@samsung.com>
Mon, 10 Mar 2014 12:36:21 +0000 (12:36 +0000)
committerChris Michael <cp.michael@samsung.com>
Mon, 10 Mar 2014 12:40:31 +0000 (12:40 +0000)
too.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/Ecore_Drm.h
src/lib/ecore_drm/ecore_drm_device.c

index d776097b9d207a99a0551b37e2f5aae6162a7e03..fdf41b499a5471af5c54d7c3070f14c0e18069e6 100644 (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);
index f1ab021ff5c6c909f856a43921f45fdb9e434cae..0f7efdf8dc7daf8c7230cab2afa22f3725d9c1ff 100644 (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;
+}