From: Juyeon Lee Date: Fri, 9 Aug 2019 07:47:17 +0000 (+0900) Subject: e_config: added global_object_not_provide X-Git-Tag: submit/tizen/20190930.063737^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1faac32b9f9c811ff4ea08cf47dccb7ac2db3da1;p=platform%2Fupstream%2Fenlightenment.git 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 --- 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) {