From 1faac32b9f9c811ff4ea08cf47dccb7ac2db3da1 Mon Sep 17 00:00:00 2001 From: Juyeon Lee Date: Fri, 9 Aug 2019 16:47:17 +0900 Subject: [PATCH] e_config: added global_object_not_provide depends on profile, there are demands to on or off specific protocol service. by adding config on this structure, server don't create global objects so client cannot bind such interface. Change-Id: Ifd2926f2647cdbfeef612a2993e6150e86e2d74d --- src/bin/e_config.c | 2 ++ src/bin/e_config.h | 6 ++++++ src/bin/e_policy_wl.c | 17 ++++++++++------- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 0f9632c14d..537987c015 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -300,6 +300,7 @@ _e_config_edd_init(Eina_Bool old) E_CONFIG_VAL(D, T, configured_output_resolution.use, UCHAR); E_CONFIG_VAL(D, T, configured_output_resolution.w, INT); E_CONFIG_VAL(D, T, configured_output_resolution.h, INT); + E_CONFIG_VAL(D, T, global_object_not_provide.launch_effect, UCHAR); } static Eina_Bool @@ -533,6 +534,7 @@ e_config_load(void) E_CONFIG_LIMIT(e_config->qp_handler.use_alpha, 0, 1); E_CONFIG_LIMIT(e_config->qp_handler.alpha, 0, 255); E_CONFIG_LIMIT(e_config->configured_output_resolution.use, 0, 1); + E_CONFIG_LIMIT(e_config->global_object_not_provide.launch_effect, 0, 1); } E_API int diff --git a/src/bin/e_config.h b/src/bin/e_config.h index d079754d6d..89ee23a28d 100644 --- a/src/bin/e_config.h +++ b/src/bin/e_config.h @@ -237,6 +237,12 @@ struct _E_Config int w; // width of the configured output resolution. int h; // height of the configured output resolution. } configured_output_resolution; + + //specific global object( client not to bind ) + struct + { + Eina_Bool launch_effect; // iface name : tizen_launch_effect + } global_object_not_provide; }; struct _E_Config_Desklock_Background diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 075884cdc0..13c9d48303 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -7398,14 +7398,17 @@ e_policy_wl_defer_job(void) struct wl_global *global = NULL; EINA_SAFETY_ON_NULL_GOTO(polwl, err); - global = wl_global_create(e_comp_wl->wl.disp, - &tizen_launch_effect_interface, - 1, - NULL, - _tzlaunch_effect_cb_bind); - EINA_SAFETY_ON_NULL_GOTO(global, err); + if (!e_config->global_object_not_provide.launch_effect) + { + global = wl_global_create(e_comp_wl->wl.disp, + &tizen_launch_effect_interface, + 1, + NULL, + _tzlaunch_effect_cb_bind); + EINA_SAFETY_ON_NULL_GOTO(global, err); - polwl->globals = eina_list_append(polwl->globals, global); + polwl->globals = eina_list_append(polwl->globals, global); + } if (e_config->configured_output_resolution.use) { -- 2.34.1