devilhorns pushed a commit to branch master.

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

commit d02da903febfbf172e90373d817d5e743c0c84ed
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 20 12:44:17 2015 -0400

    ecore-wl2: Add function to return window id
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        | 9 +++++++++
 src/lib/ecore_wl2/ecore_wl2_window.c | 7 +++++++
 2 files changed, 16 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 3eff825..d226ea4 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -222,6 +222,15 @@ EAPI Eina_Iterator 
*ecore_wl2_display_globals_get(Ecore_Wl2_Display *display);
  */
 EAPI Ecore_Wl2_Window *ecore_wl2_window_new(Ecore_Wl2_Display *display, 
Ecore_Wl2_Window *parent, int x, int y, int w, int h);
 
+/**
+ * Get the window id associated with an Ecore_Wl2_Window
+ *
+ * @param window The Ecore_Wl2_Window of which to retrieve the window id
+ *
+ * @return The id associated with this window
+ */
+EAPI int ecore_wl2_window_id_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 283bae4..e4224a3 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -27,3 +27,10 @@ ecore_wl2_window_new(Ecore_Wl2_Display *display, 
Ecore_Wl2_Window *parent, int x
 
    return win;
 }
+
+EAPI int
+ecore_wl2_window_id_get(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, -1);
+   return win->id;
+}

-- 


Reply via email to