devilhorns pushed a commit to branch master.

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

commit 3a708abdf453441856b5909d8a87991f6f965835
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 20 09:56:18 2015 -0400

    ecore-wl2: Add API function to return the wl_shm interface
    
    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 a302dfc..97fa3c6 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -141,6 +141,18 @@ EAPI Ecore_Wl2_Display *ecore_wl2_display_connect(const 
char *name);
  */
 EAPI struct wl_display *ecore_wl2_display_get(Ecore_Wl2_Display *display);
 
+/**
+ * Retrieve the wl_shm from a given Ecore_Wl2_Display
+ *
+ * @param display The Ecore_Wl2_Display for which to retrieve the existing
+ *                Wayland shm interface from
+ *
+ * @return The wl_shm which this Ecore_Wl2_Display is using
+ *
+ * @ingroup Ecore_Wl2_Display_Group
+ */
+EAPI struct wl_shm *ecore_wl2_display_shm_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 a0310ab..366077b 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -279,3 +279,10 @@ ecore_wl2_display_get(Ecore_Wl2_Display *display)
    EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
    return display->wl.display;
 }
+
+EAPI struct wl_shm *
+ecore_wl2_display_shm_get(Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return display->wl.shm;
+}

-- 


Reply via email to