Fix name of static functions 64/127064/1
authorHyunho Kang <hhstark.kang@samsung.com>
Wed, 26 Apr 2017 05:39:34 +0000 (14:39 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Wed, 26 Apr 2017 05:44:18 +0000 (14:44 +0900)
Change-Id: I7ed76be460f6c723fdae4668d775134bc8ae3260
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index cd40d9b..2407047 100644 (file)
@@ -176,7 +176,7 @@ struct widget_info {
 static void __flush_event_queue(struct widget_info *info);
 static void __destroy_widget_info(gpointer data);
 
-static inline bool is_widget_feature_enabled(void)
+static inline bool __is_widget_feature_enabled(void)
 {
        static bool feature = false;
        static bool retrieved = false;
@@ -243,7 +243,7 @@ ERROR:
        return ret;
 }
 
-static void smart_callback_call(Evas_Object *obj, const char *signal, void *cbdata)
+static void __smart_callback_call(Evas_Object *obj, const char *signal, void *cbdata)
 {
        if (!obj) {
                DbgPrint("widget is deleted, ignore smart callback call");
@@ -325,7 +325,7 @@ static void __screen_connector_toolkit_evas_removed_cb(const char *appid, const
        event_info.widget_app_id = info->widget_id;
        event_info.event = WIDGET_EVENT_DELETED;
 
-       smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &event_info);
+       __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &event_info);
 }
 
 static void __screen_connector_toolkit_evas_updated_cb(const char *appid, const char *instance_id, int pid,
@@ -531,7 +531,7 @@ static int __instance_event_cb(const char *widget_id, const char *instance_id, i
                return 0;
        }
 
-       smart_callback_call(info->layout, smart_signal, &event_info);
+       __smart_callback_call(info->layout, smart_signal, &event_info);
 
        return 0;
 }
@@ -568,7 +568,7 @@ EAPI int widget_viewer_evas_init(Evas_Object *win)
 {
        char app_id[255];
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (__check_privilege("http://tizen.org/privilege/widget.viewer") < 0)
@@ -607,7 +607,7 @@ EAPI int widget_viewer_evas_init(Evas_Object *win)
 
 EAPI int widget_viewer_evas_fini(void)
 {
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -637,7 +637,7 @@ EAPI int widget_viewer_evas_notify_resumed_status_of_viewer(void)
        struct widget_info *info;
        int ret;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -667,7 +667,7 @@ EAPI int widget_viewer_evas_notify_paused_status_of_viewer(void)
        struct widget_info *info;
        int ret;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -692,7 +692,7 @@ EAPI int widget_viewer_evas_notify_paused_status_of_viewer(void)
 
 EAPI int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
 {
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -708,7 +708,7 @@ EAPI int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
        return WIDGET_ERROR_NONE;
 }
 
-static void del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
+static void __del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
 {
        struct widget_info *info = data;
        struct widget_evas_event_info evas_info;
@@ -723,7 +723,7 @@ static void del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
        evas_info.widget_app_id = info->widget_id;
        evas_info.event = WIDGET_EVENT_CREATED;
 
-       smart_callback_call(layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &evas_info);
+       __smart_callback_call(layout, WIDGET_SMART_SIGNAL_WIDGET_DELETED, &evas_info);
        evas_object_data_del(layout, WIDGET_INFO_TAG);
        info->layout = NULL;
        if (info->event_queue) {
@@ -744,7 +744,7 @@ static void del_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
                g_hash_table_remove(s_info.widget_table, info->instance_id);
 }
 
-static void resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
+static void __resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info)
 {
        Evas_Object *preview = NULL;
        struct widget_info *info = data;
@@ -791,7 +791,7 @@ static void resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info
                        event_info.widget_app_id = info->widget_id;
                        event_info.event = WIDGET_EVENT_CREATED;
 
-                       smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
+                       __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
                        __display_overlay_text(info);
 
                        return;
@@ -806,7 +806,7 @@ static void resize_cb(void *data, Evas *e, Evas_Object *layout, void *event_info
        }
 }
 
-static void _clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
+static void __clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
 {
        struct widget_info *info = data;
 
@@ -826,9 +826,9 @@ static void __destroy_widget_info(gpointer data)
        LOGD("__destroy_widget_info widget_id: %s instance_id %s", info->widget_id, info->instance_id);
 
        if (info->layout) {
-               evas_object_event_callback_del(info->layout, EVAS_CALLBACK_DEL, del_cb);
-               evas_object_event_callback_del(info->layout, EVAS_CALLBACK_RESIZE, resize_cb);
-               elm_object_signal_callback_del(info->layout, "clicked", "reload", _clicked_cb);
+               evas_object_event_callback_del(info->layout, EVAS_CALLBACK_DEL, __del_cb);
+               evas_object_event_callback_del(info->layout, EVAS_CALLBACK_RESIZE, __resize_cb);
+               elm_object_signal_callback_del(info->layout, "clicked", "reload", __clicked_cb);
        }
 
        if (info->widget_id)
@@ -844,7 +844,7 @@ static void __destroy_widget_info(gpointer data)
        free(info);
 }
 
-static struct widget_info *create_info(Evas_Object *parent, const char *widget_id, const char *instance_id, const char *content_info)
+static struct widget_info *__create_info(Evas_Object *parent, const char *widget_id, const char *instance_id, const char *content_info)
 {
        struct widget_info *info;
        char err_buf[ERR_BUFFER_SIZE];
@@ -877,9 +877,9 @@ static struct widget_info *create_info(Evas_Object *parent, const char *widget_i
 
        evas_object_data_set(info->layout, WIDGET_INFO_TAG, info);
 
-       evas_object_event_callback_add(info->layout, EVAS_CALLBACK_RESIZE, resize_cb, info);
-       evas_object_event_callback_add(info->layout, EVAS_CALLBACK_DEL, del_cb, info);
-       elm_object_signal_callback_add(info->layout, "clicked", "reload", _clicked_cb, info);
+       evas_object_event_callback_add(info->layout, EVAS_CALLBACK_RESIZE, __resize_cb, info);
+       evas_object_event_callback_add(info->layout, EVAS_CALLBACK_DEL, __del_cb, info);
+       elm_object_signal_callback_add(info->layout, "clicked", "reload", __clicked_cb, info);
 
        info->permanent_delete = 0;
        info->disable_preview = 0;
@@ -932,7 +932,7 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
                return NULL;
        }
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                ErrPrint("Widget Feature is disabled");
                return NULL;
@@ -967,7 +967,7 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
                return NULL;
        }
 
-       widget_instance_info = create_info(parent, widget_id, instance_id, content_info);
+       widget_instance_info = __create_info(parent, widget_id, instance_id, content_info);
        if (!widget_instance_info) {
                set_last_result(WIDGET_ERROR_FAULT);
                ErrPrint("Unable to create an information object");
@@ -996,7 +996,7 @@ EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char
 
 EAPI int widget_viewer_evas_set_option(widget_evas_conf_e type, int value)
 {
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (type < WIDGET_VIEWER_EVAS_MANUAL_PAUSE_RESUME || type > WIDGET_VIEWER_EVAS_UNKNOWN) {
@@ -1019,7 +1019,7 @@ EAPI int widget_viewer_evas_pause_widget(Evas_Object *widget)
        struct widget_info *info;
        int ret = WIDGET_ERROR_NONE;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -1057,7 +1057,7 @@ EAPI int widget_viewer_evas_resume_widget(Evas_Object *widget)
        struct widget_info *info;
        int ret = WIDGET_ERROR_NONE;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -1094,7 +1094,7 @@ EAPI const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return NULL;
        }
@@ -1127,7 +1127,7 @@ EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
        const char *title = NULL;
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return NULL;
        }
@@ -1163,7 +1163,7 @@ EAPI const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                return NULL;
        }
 
@@ -1190,7 +1190,7 @@ EAPI double widget_viewer_evas_get_period(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return -1.0f;
 
        if (!s_info.initialized) {
@@ -1217,7 +1217,7 @@ EAPI void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
        Evas_Object *remote_obj;
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1260,7 +1260,7 @@ EAPI int widget_viewer_evas_feed_mouse_up_event(Evas_Object *widget)
        Evas_Object *remote_obj;
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -1300,7 +1300,7 @@ EAPI void widget_viewer_evas_disable_preview(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1340,7 +1340,7 @@ EAPI void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1379,7 +1379,7 @@ EAPI void widget_viewer_evas_disable_loading(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1413,7 +1413,7 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
        struct widget_info *info;
        screen_connector_toolkit_evas_ops ops;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1464,7 +1464,7 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
                        event_info.widget_app_id = info->widget_id;
                        event_info.event = WIDGET_EVENT_CREATED;
 
-                       smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
+                       __smart_callback_call(info->layout, WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED, &event_info);
 
                        return;
                }
@@ -1481,7 +1481,7 @@ EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return false;
        }
@@ -1514,7 +1514,7 @@ EAPI int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibi
        int ret = 0;
        Evas_Object *tbm_obj;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                return WIDGET_ERROR_NOT_SUPPORTED;
        }
 
@@ -1568,7 +1568,7 @@ EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
        struct widget_info *info;
        Evas_Object *tbm_obj;
 
-       if (!is_widget_feature_enabled())
+       if (!__is_widget_feature_enabled())
                return WIDGET_ERROR_NOT_SUPPORTED;
 
        if (!s_info.initialized) {
@@ -1603,7 +1603,7 @@ EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return false;
        }
@@ -1637,7 +1637,7 @@ EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return false;
        }
@@ -1668,7 +1668,7 @@ EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return;
        }
@@ -1700,7 +1700,7 @@ EAPI const char *widget_viewer_evas_get_widget_instance_id(Evas_Object *widget)
 {
        struct widget_info *info;
 
-       if (!is_widget_feature_enabled()) {
+       if (!__is_widget_feature_enabled()) {
                set_last_result(WIDGET_ERROR_NOT_SUPPORTED);
                return NULL;
        }