Modified to send message to net popup
[platform/core/connectivity/stc-manager.git] / src / stc-manager-plugin-appstatus.c
old mode 100644 (file)
new mode 100755 (executable)
index 8bc067b..cab52ad
@@ -64,29 +64,7 @@ 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,
+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__;
@@ -104,8 +82,8 @@ int stc_plugin_appstatus_send_restriction_message(const char *content,
        }
 
        __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,