ecore_wl2: add a new API to ecore_wl2_sync
authorJengHyun Kang <jhyuni.kang@samsung.com>
Wed, 8 Nov 2017 13:13:29 +0000 (22:13 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 19 Dec 2017 01:15:11 +0000 (10:15 +0900)
@tizen_feature

Change-Id: I01c0157b169ce9bfcf5dcbe30a19c833215a13a7

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

index 548f41f..3253000 100644 (file)
@@ -2223,6 +2223,9 @@ EAPI void ecore_wl2_display_sync(Ecore_Wl2_Display *display);
 // TIZEN_ONLY(20171107): add ecore_wl2_window_input_get() EAPI
 EAPI Ecore_Wl2_Input *ecore_wl2_window_input_get(Ecore_Wl2_Window *win);
 //
+//TIZEN_ONLY(20171108): add a new API to ecore_wl2_sync
+EAPI void ecore_wl2_sync(void);
+//
 
 # endif
 
index 1247d3e..7f9e3e0 100644 (file)
@@ -868,6 +868,19 @@ ecore_wl2_display_sync(Ecore_Wl2_Display *display)
 }
 //
 
+//TIZEN_ONLY(20171108): add a new API to ecore_wl2_sync
+EAPI void
+ecore_wl2_sync(void)
+{
+   Ecore_Wl2_Display *ewd;
+
+   ewd = ecore_wl2_connected_display_get(NULL);
+   if (!ewd) return;
+
+   ecore_wl2_display_sync(ewd);
+}
+//
+
 static void
 _ecore_wl2_display_sync_add(Ecore_Wl2_Display *ewd)
 {