common: fix formatting so that using efl coding convention. 44/241244/2
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 3 Aug 2020 11:07:43 +0000 (20:07 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 19 Aug 2020 16:45:12 +0000 (01:45 +0900)
Change-Id: I53a814f8ad5dbec15023776c4d9f2db50904a8ee

12 files changed:
Makefile.am
src/examples/Makefile.am
src/lib/Makefile.am
src/lib/compositor.c
src/lib/input.c
src/lib/log.c
src/lib/object.c
src/lib/object.h
src/lib/private.h
src/lib/shell.c
src/lib/shell.h
src/lib/tizen_policy.c

index e3129d2d3e60869972a302b485d1628a293999a3..e3625f50304cdb5ad9646e834d42423ab1ba4205 100644 (file)
@@ -2,4 +2,3 @@ SUBDIRS = src
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libpepper-efl.pc
-
index 5fe5987c6e72b9ef7140a0ce2cc2938b015dc61c..0f7c3fda7cada89610d87fb3657ceeaa1f669e6c 100644 (file)
@@ -6,12 +6,12 @@ EXTRA_DIST = $(datafiles_DATA)
 widgets_bindir = $(libexecdir)/libpepper-efl/samples
 widgets_bin_PROGRAMS = touch_sample thread_sample entry_sample
 
-AM_CPPFLAGS =                                \
-       -I$(top_builddir)/src/lib/           \
-       -I$(top_builddir)/src/lib/extensions \
-        -DDATA_PATH=\"$(datafilesdir)\"      \
-        -DSAMPLE_PATH=\"$(widgets_bindir)\"  \
-        @ELEMENTARY_CFLAGS@
+AM_CPPFLAGS =                                                          \
+       -I$(top_builddir)/src/lib/                              \
+       -I$(top_builddir)/src/lib/extensions    \
+       -DDATA_PATH=\"$(datafilesdir)\"                 \
+       -DSAMPLE_PATH=\"$(widgets_bindir)\"             \
+       @ELEMENTARY_CFLAGS@
 
 touch_sample_SOURCES = touch_sample.c
 touch_sample_CFLAGS = @ELEMENTARY_CFLAGS@
@@ -30,13 +30,12 @@ bin_PROGRAMS = pepper_efl_example pepper_efl_simple
 
 pepper_efl_example_SOURCES = pepper_efl_example.c
 pepper_efl_example_CFLAGS = $(AM_CPPFLAGS)
-pepper_efl_example_LDADD =                             \
+pepper_efl_example_LDADD =                                             \
        $(top_builddir)/src/lib/libpepper-efl.la        \
        @ELEMENTARY_LIBS@
 
 pepper_efl_simple_SOURCES = pepper_efl_simple.c
 pepper_efl_simple_CFLAGS = $(AM_CPPFLAGS)
-pepper_efl_simple_LDADD =                              \
+pepper_efl_simple_LDADD =                                              \
        $(top_builddir)/src/lib/libpepper-efl.la        \
        @ELEMENTARY_LIBS@
-
index 60ad42c42f60f17eb8c0e70450d537f6782f3175..c79f7506383eaccc23f8f76a95e07f6b16b26528 100644 (file)
@@ -3,23 +3,23 @@ libpepper_efl_ladir = $(libdir)
 libpepper_efl_la_LIBADD = @EFL_LIBS@ @WAYLAND_LIBS@ @PEPPER_LIBS@ @WAYLAND_TBM_LIBS@
 libpepper_efl_la_LDFLAGS = ${LDFLAGS}
 libpepper_efl_la_CPPFLAGS = $(AM_CPPFLAGS)
-libpepper_efl_la_CFLAGS = \
-    ${CFLAGS} \
-    @EFL_CFLAGS@ \
-    @WAYLAND_CFLAGS@ \
-    @PEPPER_CFLAGS@ \
-    @WAYLAND_TBM_CFLAGS@ \
-    -I$(top_srcdir)/src
+libpepper_efl_la_CFLAGS =      \
+       ${CFLAGS}                               \
+       @EFL_CFLAGS@                    \
+       @WAYLAND_CFLAGS@                \
+       @PEPPER_CFLAGS@                 \
+       @WAYLAND_TBM_CFLAGS@    \
+       -I$(top_srcdir)/src
 
-libpepper_efl_la_SOURCES = \
-compositor.c              \
-log.c                     \
-output.c                  \
-shell.c                           \
-input.c                           \
-object.c                   \
-tizen_policy.c
+libpepper_efl_la_SOURCES =     \
+       compositor.c                    \
+       log.c                                   \
+       output.c                                \
+       shell.c                                 \
+       input.c                                 \
+       object.c                                \
+       tizen_policy.c
 
 libpeppereflincludedir = $(includedir)/pepper-efl
-libpeppereflinclude_HEADERS = \
-Pepper_Efl.h
+libpeppereflinclude_HEADERS =  \
+       Pepper_Efl.h
index 8d6b202395a961e742eaeb313978cd01c70ef08a..acac49cf81c5e3ae41ddced3a070c3f77569171f 100644 (file)
@@ -19,8 +19,8 @@
 // internal header
 #include "private.h"
 
-static Eina_Hash *_comp_hash = NULL;
-static pthread_mutex_t _comp_hash_lock = PTHREAD_MUTEX_INITIALIZER;
+static Eina_Hash        *_comp_hash = NULL;
+static pthread_mutex_t   _comp_hash_lock = PTHREAD_MUTEX_INITIALIZER;
 
 static Eina_Bool            _pepper_efl_compositor_init(void);
 static void                 _pepper_efl_compositor_shutdown(void);
index 50804d9b6d3c57816af759c2916d198abd94661a..14b3fdc3659e86f80b9de88c58dedb2949ada09c 100644 (file)
@@ -5,7 +5,7 @@
 #include <pepper-xkb.h>
 #include <pepper-input-backend.h>
 
-static Eina_List *handlers = NULL;
+static Eina_List *_handlers = NULL;
 
 static Eina_Bool
 _pepper_efl_input_cb_key_down(void *data, int ev_type EINA_UNUSED, Ecore_Event_Key *ev)
@@ -91,8 +91,8 @@ pepper_efl_input_create(pepper_efl_comp_t *comp)
    if (input->xkb)
      pepper_xkb_keyboard_set_keymap(input->xkb, input->keyboard, NULL);
 
-   PE_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_DOWN, _pepper_efl_input_cb_key_down, input);
-   PE_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_UP, _pepper_efl_input_cb_key_up, input);
+   PE_LIST_HANDLER_APPEND(_handlers, ECORE_EVENT_KEY_DOWN, _pepper_efl_input_cb_key_down, input);
+   PE_LIST_HANDLER_APPEND(_handlers, ECORE_EVENT_KEY_UP, _pepper_efl_input_cb_key_up, input);
 
    return input;
 
@@ -113,12 +113,12 @@ pepper_efl_input_destroy(pepper_efl_input_t *input)
    Eina_List *l, *ll;
    Ecore_Event_Handler *hdl;
 
-   EINA_LIST_FOREACH_SAFE(handlers, l, ll, hdl)
+   EINA_LIST_FOREACH_SAFE(_handlers, l, ll, hdl)
      {
         if (input != ecore_event_handler_data_get(hdl)) continue;
 
         ecore_event_handler_del(hdl);
-        handlers = eina_list_remove(handlers, hdl);
+        _handlers = eina_list_remove(_handlers, hdl);
      }
 
    pepper_xkb_destroy(input->xkb);
index 4d0237cde9be343adeaac52a9dce001346136466..8d3c6154c3ce22044734d88c779dee46b35f01ba 100644 (file)
@@ -1,7 +1,7 @@
 #include "log.h"
 
-int _log_domain = -1;
-static int _init_count = 0;
+int         _log_domain = -1;
+static int  _init_count = 0;
 
 int
 pepper_efl_log_init(const char *domain)
index 72fa1052ff0caba1a53ebbb9cd348a04d62258b1..0e9b5eb5aa520bb497eb89c66ef791d0206d095d 100644 (file)
@@ -9,11 +9,10 @@
    if (!po)                               \
       return
 
-static Evas_Smart *_pepper_efl_smart = NULL;
-
+static Evas_Smart          *_pepper_efl_smart = NULL;
 static pepper_efl_object_t *_mouse_in_po = NULL;
-static Eina_Bool _need_send_motion = EINA_TRUE;
-static Eina_Bool _need_send_released = EINA_FALSE;
+static Eina_Bool            _need_send_motion = EINA_TRUE;
+static Eina_Bool            _need_send_released = EINA_FALSE;
 
 static void
 _pepper_efl_object_buffer_release(Evas_Object *obj)
@@ -154,9 +153,7 @@ _pepper_efl_smart_clip_unset(Evas_Object *obj)
 static void
 _pepper_efl_smart_init(void)
 {
-   if (_pepper_efl_smart)
-     return;
-
+   if (_pepper_efl_smart) return;
    {
       static const Evas_Smart_Class sc =
       {
@@ -259,8 +256,9 @@ _touch_move(pepper_efl_object_t *po, unsigned int timestamp, int device, int x,
 static void
 _pepper_efl_object_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
 
+   po = data;
    if (EINA_UNLIKELY(!po))
      return;
 
@@ -274,8 +272,9 @@ _pepper_efl_object_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Obj
 static void
 _pepper_efl_object_evas_cb_mouse_out(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
 
+   po = data;
    if (EINA_UNLIKELY(!po))
      return;
 
@@ -290,8 +289,11 @@ _pepper_efl_object_evas_cb_mouse_out(void *data EINA_UNUSED, Evas *evas EINA_UNU
 static void
 _pepper_efl_object_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Mouse_Move *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Mouse_Move *ev;
+
+   po = data;
+   ev = event;
 
    fprintf(stderr, "[touch] move id:%d %dx%d\n", 0, ev->cur.canvas.x, ev->cur.canvas.y);
 
@@ -304,8 +306,11 @@ _pepper_efl_object_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_O
 static void
 _pepper_efl_object_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Mouse_Down *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Mouse_Down *ev;
+
+   po = data;
+   ev = event;
 
    _need_send_released = EINA_TRUE;
 
@@ -316,8 +321,11 @@ _pepper_efl_object_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_O
 static void
 _pepper_efl_object_evas_cb_mouse_up(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Mouse_Up *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Mouse_Up *ev;
+
+   po = data;
+   ev = event;
 
    fprintf(stderr, "[touch] up id:%d %dx%d\n", 0, ev->canvas.x, ev->canvas.y);
 
@@ -332,8 +340,11 @@ _pepper_efl_object_evas_cb_mouse_up(void *data, Evas *evas EINA_UNUSED, Evas_Obj
 static void
 _pepper_efl_object_evas_cb_multi_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Multi_Down *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Multi_Down *ev;
+
+   po = data;
+   ev = event;
 
    fprintf(stderr, "[touch] down id:%d %dx%d\n", ev->device, ev->canvas.x, ev->canvas.y);
    _touch_down(po, ev->timestamp, ev->device, ev->canvas.x, ev->canvas.y);
@@ -342,8 +353,11 @@ _pepper_efl_object_evas_cb_multi_down(void *data, Evas *evas EINA_UNUSED, Evas_O
 static void
 _pepper_efl_object_evas_cb_multi_up(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Multi_Up *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Multi_Up *ev;
+
+   po = data;
+   ev = event;
 
    fprintf(stderr, "[touch] down id:%d %dx%d\n", ev->device, ev->canvas.x, ev->canvas.y);
    _touch_up(po, ev->timestamp, ev->device);
@@ -352,8 +366,11 @@ _pepper_efl_object_evas_cb_multi_up(void *data EINA_UNUSED, Evas *evas EINA_UNUS
 static void
 _pepper_efl_object_evas_cb_multi_move(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
-   Evas_Event_Multi_Move *ev = event;
+   pepper_efl_object_t *po;
+   Evas_Event_Multi_Move *ev;
+
+   po = data;
+   ev = event;
 
    fprintf(stderr, "[touch] move id:%d %dx%d\n", ev->device, ev->cur.canvas.x, ev->cur.canvas.y);
    _touch_move(po, ev->timestamp, ev->device, ev->cur.canvas.x, ev->cur.canvas.y);
@@ -362,9 +379,11 @@ _pepper_efl_object_evas_cb_multi_move(void *data EINA_UNUSED, Evas *evas EINA_UN
 static void
 _pepper_efl_object_evas_cb_focus_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
    pepper_view_t *view, *focused_view;
 
+   po = data;
+
    if (!po->surface)
      return;
 
@@ -397,9 +416,11 @@ _pepper_efl_object_evas_cb_focus_in(void *data, Evas *evas EINA_UNUSED, Evas_Obj
 static void
 _pepper_efl_object_evas_cb_focus_out(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
    pepper_view_t *view, *focused_view;
 
+   po = data;
+
    if (!po->surface)
      return;
 
@@ -427,7 +448,9 @@ _pepper_efl_object_evas_cb_focus_out(void *data EINA_UNUSED, Evas *evas EINA_UNU
 static void
 _pepper_efl_object_cb_buffer_destroy(pepper_event_listener_t *listener EINA_UNUSED, pepper_object_t *object EINA_UNUSED, uint32_t id EINA_UNUSED, void *info EINA_UNUSED, void *data)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
+
+   po = data;
 
    DBG("[OBJECT] Buffer destroy: obj %p", po->smart_obj);
 
@@ -447,7 +470,9 @@ _pepper_efl_object_cb_buffer_destroy(pepper_event_listener_t *listener EINA_UNUS
 static void
 _pepper_efl_object_cb_surface_destroy(pepper_event_listener_t *listener EINA_UNUSED, pepper_object_t *object EINA_UNUSED, uint32_t id EINA_UNUSED, void *info EINA_UNUSED, void *data)
 {
-   pepper_efl_object_t *po = data;
+   pepper_efl_object_t *po;
+
+   po = data;
 
    if (po->shm_buffer)
      {
@@ -583,7 +608,7 @@ pepper_efl_object_buffer_attach(Evas_Object *obj, int *w, int *h)
    buf_res = pepper_buffer_get_resource(buffer);
 
    if ((shm_buffer = wl_shm_buffer_get(buf_res)))
-      {
+     {
         po->shm_buffer = shm_buffer;
 
         bw = wl_shm_buffer_get_width(shm_buffer);
@@ -591,9 +616,9 @@ pepper_efl_object_buffer_attach(Evas_Object *obj, int *w, int *h)
      }
    else if ((tbm_surface = wayland_tbm_server_get_surface(NULL, buf_res)))
      {
-       po->tbm_surface = tbm_surface;
-       bw = tbm_surface_get_width(tbm_surface);
-       bh = tbm_surface_get_height(tbm_surface);
+        po->tbm_surface = tbm_surface;
+        bw = tbm_surface_get_width(tbm_surface);
+        bh = tbm_surface_get_height(tbm_surface);
      }
    else
      {
index ae28d9ba0ffb99d2fb25b20d319552acf430ab85..1a6e973a23d67cc1ffabd898f71d0203943bbcd2 100644 (file)
@@ -21,11 +21,11 @@ struct pepper_efl_object
    int x, y, w, h;
 
    struct
-   {
-      pepper_pointer_t *ptr;
-      pepper_keyboard_t *kbd;
-      pepper_touch_t *touch;
-   } input;
+     {
+        pepper_pointer_t *ptr;
+        pepper_keyboard_t *kbd;
+        pepper_touch_t *touch;
+     } input;
 };
 
 Evas_Object       *pepper_efl_object_get(pepper_efl_output_t *output, pepper_surface_t *surface);
index 0aa8ccd4b138dd868b6955bc54a82fc56b26e5cf..f7ff3d2f1f60749c1413d9ee8fbe28acb477d751 100644 (file)
@@ -33,20 +33,20 @@ struct pepper_efl_comp
    pepper_efl_input_t *input;
 
    struct
-   {
-      pepper_compositor_t *comp;
-   } pepper;
+     {
+        pepper_compositor_t *comp;
+     } pepper;
 
    struct
-   {
-      struct wl_display *disp;
-      struct wl_event_loop *loop;
-      struct
-        {
-           struct wl_global *xdg_shell_v6;
-           struct wl_global *tizen_policy;
-        } global;
-   } wl;
+     {
+        struct wl_display *disp;
+        struct wl_event_loop *loop;
+        struct
+          {
+             struct wl_global *xdg_shell_v6;
+             struct wl_global *tizen_policy;
+          } global;
+     } wl;
 
    struct wayland_tbm_server *tbm_server;
 };
index d16008366ddc34405c9393901709f2f01fc2ce3e..63735d4f22fe77ce9f29b7b74e223bb40e00f40b 100644 (file)
@@ -454,7 +454,8 @@ static const struct zxdg_toplevel_v6_interface xdg_toplevel_implementation =
    xdg_toplevel_cb_maximized_unset,
    xdg_toplevel_cb_fullscreen_set,
    xdg_toplevel_cb_fullscreen_unset,
-   xdg_toplevel_cb_minimized_set};
+   xdg_toplevel_cb_minimized_set
+};
 
 static void
 xdg_surface_ref(xdg_surface_t *shsurf)
@@ -494,8 +495,8 @@ xdg_surface_cb_resource_destroy(struct wl_resource *resource)
                                  NULL, NULL);
 
    /* 'shsurf->view' need to be freed? */
-      if (shsurf->view)
-      pepper_view_destroy(shsurf->view);
+   if (shsurf->view)
+     pepper_view_destroy(shsurf->view);
 
    xdg_surface_unref(shsurf);
 }
@@ -793,7 +794,8 @@ static const struct zxdg_surface_v6_interface xdg_surface_implementation =
    xdg_surface_cb_toplevel_get,
    xdg_surface_cb_popup_get,
    xdg_surface_cb_win_geometry_set,
-   xdg_surface_cb_configure_ack};
+   xdg_surface_cb_configure_ack
+};
 
 static void
 xdg_positioner_cb_resource_destroy(struct wl_resource *resource)
@@ -996,11 +998,13 @@ xdg_shell_cb_pong(struct wl_client *client, struct wl_resource *resource, uint32
    /* TODO */
 }
 
-static const struct zxdg_shell_v6_interface xdg_shell_implementation = {
-     xdg_shell_cb_destroy,
-     xdg_shell_cb_positioner_create,
-     xdg_shell_cb_surface_get,
-     xdg_shell_cb_pong};
+static const struct zxdg_shell_v6_interface xdg_shell_implementation =
+{
+   xdg_shell_cb_destroy,
+   xdg_shell_cb_positioner_create,
+   xdg_shell_cb_surface_get,
+   xdg_shell_cb_pong
+};
 
 static void
 shell_client_destroy_handle(struct wl_resource *resource)
@@ -1060,7 +1064,7 @@ pepper_efl_shell_init(pepper_efl_comp_t *comp)
 
    wl_disp = pepper_compositor_get_display(comp->pepper.comp);
    comp->wl.global.xdg_shell_v6 =
-       wl_global_create(wl_disp, &zxdg_shell_v6_interface, 1, comp, xdg_shell_bind);
+      wl_global_create(wl_disp, &zxdg_shell_v6_interface, 1, comp, xdg_shell_bind);
    if (!comp->wl.global.xdg_shell_v6)
      {
         ERR("failed to create global for xdg_shell");
index 0d546200f66284ca79b1fe4cc6d3f6a516feccf0..6efb3f027ab0e8df92fe8c19abb42f435238622e 100644 (file)
@@ -6,8 +6,8 @@ void            pepper_efl_shell_shutdown(pepper_efl_comp_t *comp);
 void            pepper_efl_shell_configure(pepper_surface_t *psurf, int width, int height);
 void            pepper_efl_shell_map(pepper_surface_t *psurf);
 void            pepper_efl_shell_unmap(pepper_surface_t *psurf);
-const char*     pepper_efl_shell_title_get(pepper_surface_t *psurf);
-const char*     pepper_efl_shell_app_id_get(pepper_surface_t *psurf);
-pepper_view_t*  pepper_efl_shell_pepper_view_get(pepper_surface_t *psurf);
+const char     *pepper_efl_shell_title_get(pepper_surface_t *psurf);
+const char     *pepper_efl_shell_app_id_get(pepper_surface_t *psurf);
+pepper_view_t  *pepper_efl_shell_pepper_view_get(pepper_surface_t *psurf);
 
 #endif
index 45e81f35a797cce4c5d89e968005faa49453b433..61bba0c8ebdf47c76ec3f7f70ab4ff822baf2972 100644 (file)
@@ -12,7 +12,7 @@ typedef struct
    int references;
 } tzpol_surface_t;
 
-const static char       *tsurf_data_key = "tzpol-surf";
+const static char *tsurf_data_key = "tzpol-surf";
 
 static void
 _tzpol_surface_del(tzpol_surface_t *tsurf)
@@ -61,7 +61,7 @@ _tzpol_surface_pepper_surf_cb_destroy(pepper_event_listener_t *listener, pepper_
    tsurf = data;
 
    wl_resource_for_each_safe(res, tmp, &tsurf->resource_list)
-        _tzpol_surface_unref(tsurf, res);
+      _tzpol_surface_unref(tsurf, res);
 }
 
 static tzpol_surface_t *
@@ -665,11 +665,11 @@ tizen_policy_init(pepper_efl_comp_t *comp)
    DBG("tizen_policy::init");
 
    if (comp->wl.global.tizen_policy)
-       goto end;
+     goto end;
 
    wl_disp = pepper_compositor_get_display(comp->pepper.comp);
    comp->wl.global.tizen_policy =
-       wl_global_create(wl_disp, &tizen_policy_interface, 7, NULL, _tzpol_cb_bind);
+      wl_global_create(wl_disp, &tizen_policy_interface, 7, NULL, _tzpol_cb_bind);
    if (!comp->wl.global.tizen_policy)
      {
         ERR("failed to create global for tizen policy");