From: Mike Blumenkrantz Date: Fri, 12 May 2017 16:08:32 +0000 (-0400) Subject: ecore-wl2: add function for checking if a client connection sync is done X-Git-Tag: upstream/1.20.0~1099 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f32cb9ea00fc8e075ad25097da9f809f347b0d4f;p=platform%2Fupstream%2Fefl.git ecore-wl2: add function for checking if a client connection sync is done @feature --- diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index a395c1e..a1cde06 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -493,6 +493,19 @@ EAPI Ecore_Wl2_Window *ecore_wl2_display_window_find(Ecore_Wl2_Display *display, EAPI struct wl_registry *ecore_wl2_display_registry_get(Ecore_Wl2_Display *display); /** + * Check if the display has performed a sync + * + * @param display The display + * + * @return True if the display sync has occurred + * @see ECORE_WL2_EVENT_SYNC_DONE + * + * @ingroup Ecore_Wl2_Display_Group + * @since 1.20 + */ +EAPI Eina_Bool ecore_wl2_display_sync_is_done(const 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 53e236a..3a95bb5 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -945,3 +945,10 @@ ecore_wl2_display_inputs_get(Ecore_Wl2_Display *display) EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL); return eina_inlist_iterator_new(display->inputs); } + +EAPI Eina_Bool +ecore_wl2_display_sync_is_done(const Ecore_Wl2_Display *display) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(display, EINA_FALSE); + return display->sync_done; +}