ecore-wl2: add ecore_wl2_display_name_get()
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 19 May 2017 16:41:16 +0000 (12:41 -0400)
@feature

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_display.c

index 26ebb2c..8e0e398 100644 (file)
@@ -569,6 +569,18 @@ EAPI struct wl_registry *ecore_wl2_display_registry_get(Ecore_Wl2_Display *displ
 EAPI Eina_Bool ecore_wl2_display_sync_is_done(const Ecore_Wl2_Display *display);
 
 /**
+ * Get the name of the display object
+ *
+ * @param display The display
+ *
+ * @return The name of the display object
+ *
+ * @ingroup Ecore_Wl2_Display_Group
+ * @since 1.20
+ */
+EAPI const char *ecore_wl2_display_name_get(const Ecore_Wl2_Display *display);
+
+/**
  * @defgroup Ecore_Wl2_Window_Group Wayland Library Window Functions
  * @ingroup Ecore_Wl2_Group
  *
index e6c60fa..0832c69 100644 (file)
@@ -980,3 +980,10 @@ ecore_wl2_display_sync_is_done(const Ecore_Wl2_Display *display)
    EINA_SAFETY_ON_NULL_RETURN_VAL(display, EINA_FALSE);
    return display->sync_done;
 }
+
+EAPI const char *
+ecore_wl2_display_name_get(const Ecore_Wl2_Display *display)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
+   return display->name;
+}