devilhorns pushed a commit to branch master.

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

commit 31bf92dbbda629c999af4e63b2ec19e9b4657efc
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Aug 19 13:41:01 2015 -0400

    ecore-wl2: Add API function to return wl_display
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 12 ++++++++++++
 src/lib/ecore_wl2/ecore_wl2_display.c |  7 +++++++
 2 files changed, 19 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 5c3d17e..a302dfc 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -129,6 +129,18 @@ EAPI Ecore_Wl2_Display *ecore_wl2_display_create(const 
char *name);
  */
 EAPI Ecore_Wl2_Display *ecore_wl2_display_connect(const char *name);
 
+/**
+ * Retrieve the existing Wayland display
+ *
+ * @param display The Ecore_Wl2_Display for which to retrieve the existing
+ *                Wayland display from
+ *
+ * @return The wl_display which this Ecore_Wl2_Display is using
+ *
+ * @ingroup Ecore_Wl2_Display_Group
+ */
+EAPI struct wl_display *ecore_wl2_display_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 86981d6..4102f19 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -238,3 +238,10 @@ err:
    free(ewd);
    return NULL;
 }
+
+EAPI struct wl_display *
+ecore_wl2_display_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return display->wl.display;
+}

-- 


Reply via email to