devilhorns pushed a commit to branch master.

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

commit 88e47d7def6af438e4401eb1d71580855f91c12a
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 20 12:18:52 2015 -0400

    ecore-wl2: Add API function to return an iterator for display globals
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 9 +++++++++
 src/lib/ecore_wl2/ecore_wl2_display.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 e60a651..3e9176f 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -190,6 +190,15 @@ EAPI struct wl_display 
*ecore_wl2_display_get(Ecore_Wl2_Display *display);
  */
 EAPI struct wl_shm *ecore_wl2_display_shm_get(Ecore_Wl2_Display *display);
 
+/**
+ * Return an Eina_Iterator that can be used to iterate through globals
+ *
+ * @param display The Ecore_Wl2_Display for which to return a global iterator
+ *
+ * @ingroup Ecore_Wl2_Display_Group
+ */
+EAPI Eina_Iterator *ecore_wl2_display_globals_get(Ecore_Wl2_Display *display);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 0c16c6d..8f066b0 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -329,3 +329,10 @@ ecore_wl2_display_shm_get(Ecore_Wl2_Display *display)
    EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
    return display->wl.shm;
 }
+
+EAPI Eina_Iterator *
+ecore_wl2_display_globals_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return eina_hash_iterator_data_new(display->globals);
+}

-- 


Reply via email to