From d16bfd645f7ab9cea5ac99bc08fef938a927a81f Mon Sep 17 00:00:00 2001 From: Gajendra N Date: Mon, 27 Feb 2023 11:02:46 +0530 Subject: [PATCH] Add dummy implementation for ewk_set_version_policy API 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 --- tizen_src/ewk/efl_integration/public/ewk_main.cc | 8 ++++++++ .../ewk/efl_integration/public/ewk_main_internal.h | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/tizen_src/ewk/efl_integration/public/ewk_main.cc b/tizen_src/ewk/efl_integration/public/ewk_main.cc index 2a29423..5900023 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_main.cc +++ b/tizen_src/ewk/efl_integration/public/ewk_main.cc @@ -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) diff --git a/tizen_src/ewk/efl_integration/public/ewk_main_internal.h b/tizen_src/ewk/efl_integration/public/ewk_main_internal.h index a787025..c0d7498 100644 --- a/tizen_src/ewk/efl_integration/public/ewk_main_internal.h +++ b/tizen_src/ewk/efl_integration/public/ewk_main_internal.h @@ -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 -- 2.7.4