e_config: added global_object_not_provide 05/211805/3 submit/tizen/20190930.063737
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 9 Aug 2019 07:47:17 +0000 (16:47 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 30 Sep 2019 06:59:14 +0000 (06:59 +0000)
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
src/bin/e_config.h
src/bin/e_policy_wl.c

index 0f9632c14d6744ab5163a00cc63f140b8d040aab..537987c01587675d149e78de14b554dbd7b6d237 100644 (file)
@@ -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
index d079754d6d8b2f013296b9008b51f789d44a8b3e..89ee23a28d8f43093e1daa7068b074a8b81ac82e 100644 (file)
@@ -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
index 075884cdc02ab218c268e6eb3cda10c98410a9ed..13c9d48303778b4f2b86345a66f5d645cfb1ef92 100644 (file)
@@ -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)
      {