Add dummy implementation for ewk_set_version_policy API 70/288970/3
authorGajendra N <gajendra.n@samsung.com>
Mon, 27 Feb 2023 05:32:46 +0000 (11:02 +0530)
committerBot Blink <blinkbot@samsung.com>
Mon, 27 Feb 2023 06:26:52 +0000 (06:26 +0000)
ewk_set_version_policy api comes from UWE feature. Since UWE patch is
not yet applied to beta branch due to some error, this patch applies
dummy impl for the above api to succeed 7.5 VD QB build.

Change-Id: I2b6cef8e87e3e480a3ae8f49847e8743d9224aed
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
tizen_src/ewk/efl_integration/public/ewk_main.cc
tizen_src/ewk/efl_integration/public/ewk_main_internal.h

index 2a29423..5900023 100644 (file)
@@ -62,6 +62,14 @@ int _ewk_log_dom = -1;
 Ecore_Wl2_Display* _ecore_wl2_display = NULL;
 #endif
 
+/* LCOV_EXCL_START */
+int ewk_set_version_policy(int preference) {
+  // TODO: Remove below mockup log during UWE bringup
+  LOG_EWK_API_MOCKUP();
+  return 1;
+}
+/* LCOV_EXCL_STOP */
+
 int ewk_init(void)
 {
   if (_ewkInitCount)
index a787025..c0d7498 100644 (file)
@@ -139,6 +139,28 @@ EXPORT_API void ewk_set_arguments(int argc, char** argv);
 */
 EINA_DEPRECATED EXPORT_API void ewk_home_directory_set(const char* path);
 
+/**
+ * @brief Set version selection policy
+ *
+ * @details Set a version selection policy when plural web engines are
+ *          installed. If the runtime prefers preload version, set 0.
+ *          If the runtime prefers updated version, set 1.
+ *          Each product may have a different default policy so this function
+ *          provides a way to set a definitive policy to each runtime.
+ *
+ * @since_tizen 5.5
+ *
+ * @note Must be called before ewk_init. Calling the function after ewk_init has
+ *       no effect.
+ *
+ * @param[in] preference 0 means conservative. 1 means progressive.
+ *
+ * @return current policy
+ *
+ * @see ewk_init
+ */
+EXPORT_API int ewk_set_version_policy(int preference);
+
 #ifdef __cplusplus
 }
 #endif