Merge "Fix a bug by wrong declaration" into tizen
[platform/core/connectivity/stc-manager.git] / src / stc-manager-plugin-appstatus.c
index 8bc067b..a79bc93 100755 (executable)
@@ -64,88 +64,57 @@ int stc_plugin_appstatus_deinit(void)
        return STC_ERROR_NONE;
 }
 
-int stc_plugin_appstatus_send_warn_message(const char *content,
-               const char *type, const char *app_id, const char *iftype, const char *warn)
-{
-       __STC_LOG_FUNC_ENTER__;
-
-       if (!stc_plugin_enabled) {
-               STC_LOGE("Plugin wasn't enabled");
-               __STC_LOG_FUNC_EXIT__;
-               return STC_ERROR_UNINITIALIZED;
-       }
-
-       if (!stc_plugin) {
-               STC_LOGE("Plugin wasn't loaded");
-               __STC_LOG_FUNC_EXIT__;
-               return STC_ERROR_UNINITIALIZED;
-       }
-
-       __STC_LOG_FUNC_EXIT__;
-       return stc_plugin->send_warn_message_to_net_popup(content,
-                                                       type, app_id, iftype, warn);
-}
-
-int stc_plugin_appstatus_send_restriction_message(const char *content,
+API int stc_plugin_appstatus_send_message(const char *content,
                const char *type, const char *app_id, const char *iftype, const char *limit)
 {
-       __STC_LOG_FUNC_ENTER__;
-
        if (!stc_plugin_enabled) {
-               STC_LOGE("Plugin wasn't enabled");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't enabled");
                return STC_ERROR_UNINITIALIZED;
        }
 
        if (!stc_plugin) {
-               STC_LOGE("Plugin wasn't loaded");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't loaded");
                return STC_ERROR_UNINITIALIZED;
        }
 
-       __STC_LOG_FUNC_EXIT__;
-       return stc_plugin->send_restriction_message_to_net_popup(content,
-                                                       type, app_id, iftype, limit);
+       return stc_plugin->send_message_to_net_popup(content,
+                                               type, app_id, iftype, limit);
 }
 
 int stc_plugin_appstatus_register_state_changed_cb(stc_s *stc,
                stc_plugin_app_state_changed_cb cb, void *data)
 {
-       __STC_LOG_FUNC_ENTER__;
-
        if (!stc_plugin_enabled) {
-               STC_LOGE("Plugin wasn't enabled");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't enabled");
                return STC_ERROR_UNINITIALIZED;
        }
 
        if (!stc_plugin) {
-               STC_LOGE("Plugin wasn't loaded");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't loaded");
                return STC_ERROR_UNINITIALIZED;
        }
 
-       __STC_LOG_FUNC_EXIT__;
        return stc_plugin->register_state_changed_cb(stc, cb, data);
 }
 
 int stc_plugin_appstatus_deregister_state_changed_cb(stc_s *stc)
 {
-       __STC_LOG_FUNC_ENTER__;
-
        if (!stc_plugin_enabled) {
-               STC_LOGE("Plugin wasn't enabled");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't enabled");
                return STC_ERROR_UNINITIALIZED;
        }
 
        if (!stc_plugin) {
-               STC_LOGE("Plugin wasn't loaded");
-               __STC_LOG_FUNC_EXIT__;
+               if (STC_DEBUG_LOG)
+                       STC_LOGE("Plugin wasn't loaded");
                return STC_ERROR_UNINITIALIZED;
        }
 
-       __STC_LOG_FUNC_EXIT__;
        return stc_plugin->deregister_state_changed_cb(stc);
 }
 //LCOV_EXCL_STOP