devilhorns pushed a commit to branch master.

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

commit ccb80618416f6f13f6ace8f15df85a5b1a48a921
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Sep 29 11:19:54 2015 -0400

    ecore-wl2: Add API function to return the Ecore_Wl2_Input from a given
    window
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        | 3 +++
 src/lib/ecore_wl2/ecore_wl2_window.c | 9 +++++++++
 2 files changed, 12 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 1226dfe..ec2456e 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -476,6 +476,9 @@ EAPI void 
ecore_wl2_window_cursor_from_name_set(Ecore_Wl2_Window *window, const
 /* TODO: doxy */
 EAPI void ecore_wl2_window_type_set(Ecore_Wl2_Window *window, 
Ecore_Wl2_Window_Type type);
 
+/* TODO: doxy */
+EAPI Ecore_Wl2_Input *ecore_wl2_window_input_get(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 cc771c2..fa4e34e 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -838,3 +838,12 @@ ecore_wl2_window_type_set(Ecore_Wl2_Window *window, 
Ecore_Wl2_Window_Type type)
    EINA_SAFETY_ON_NULL_RETURN(window);
    window->type = type;
 }
+
+EAPI Ecore_Wl2_Input *
+ecore_wl2_window_input_get(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window->input, NULL);
+
+   return window->input;
+}

-- 


Reply via email to