discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8fb4840479c192402da8764dffe5f5d7a88db7dd

commit 8fb4840479c192402da8764dffe5f5d7a88db7dd
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Sat Dec 5 13:05:15 2015 -0500

    ecore-wl2: add function for getting display from window
---
 src/lib/ecore_wl2/Ecore_Wl2.h        | 2 ++
 src/lib/ecore_wl2/ecore_wl2_window.c | 7 +++++++
 2 files changed, 9 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 6c7da21..6c91e79 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -1002,6 +1002,8 @@ EAPI Ecore_Wl2_Keyboard 
*ecore_wl2_keyboard_get(Ecore_Wl2_Seat *seat);
 EAPI Eina_Bool ecore_wl2_keyboard_resource_create(Ecore_Wl2_Keyboard *kbd, 
struct wl_client *client, const struct wl_keyboard_interface *implementation, 
int version, uint32_t id);
 EAPI void ecore_wl2_keyboard_repeat_info_set(Ecore_Wl2_Keyboard *kbd, double 
rate, double delay);
 
+EAPI Ecore_Wl2_Display *ecore_wl2_window_display_get(const Ecore_Wl2_Window 
*window);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index 3f6d0a3..e4cbf6e 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -857,6 +857,13 @@ ecore_wl2_window_type_set(Ecore_Wl2_Window *window, 
Ecore_Wl2_Window_Type type)
    window->type = type;
 }
 
+EAPI Ecore_Wl2_Display *
+ecore_wl2_window_display_get(const Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL);
+   return window->display;
+}
+
 EAPI Ecore_Wl2_Input *
 ecore_wl2_window_input_get(Ecore_Wl2_Window *window)
 {

-- 


Reply via email to