ecore-wl2: add ecore_wl2_display_name_get()

@feature
This commit is contained in:
Mike Blumenkrantz 2017-05-17 16:02:53 -04:00
parent 047118c6e2
commit a08f8e7bbf
2 changed files with 19 additions and 0 deletions

View File

@ -568,6 +568,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

View 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;
}