devilhorns pushed a commit to branch master.

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

commit 35710fa919446d025e60ee10f973da85fb6285aa
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 1 10:02:20 2015 -0400

    ecore-wl2: Add API function to return the registry of a display
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 2 ++
 src/lib/ecore_wl2/ecore_wl2_display.c | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 1a23690..17a5321 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -308,6 +308,8 @@ EAPI void 
ecore_wl2_display_screen_size_get(Ecore_Wl2_Display *display, int *w,
 /* TODO: doxy */
 EAPI Ecore_Wl2_Window *ecore_wl2_display_window_find(Ecore_Wl2_Display 
*display, unsigned int id);
 
+EAPI struct wl_registry *ecore_wl2_display_registry_get(Ecore_Wl2_Display 
*display);
+
 /**
  * @defgroup Ecore_Wl2_Window_Group Wayland Library Window Functions
  * @ingroup Ecore_Wl2_Group
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index 7a46329..0c5984c 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -502,3 +502,11 @@ ecore_wl2_display_window_find(Ecore_Wl2_Display *display, 
unsigned int id)
 
    return NULL;
 }
+
+EAPI struct wl_registry *
+ecore_wl2_display_registry_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+
+   return wl_display_registry_get(display->wl.display);
+}

-- 


Reply via email to