X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fstc-manager-plugin-appstatus.c;h=a79bc93b907e733389cc915eaec7d86399df40d6;hb=f8e88a87a33763dbd5a58a29f8876b7254e6864d;hp=cab52ad3d8bb57455cd68df80faa2532cfe15812;hpb=30c910c6469eca1fc6a1cc8db64e51df9f09dbee;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git diff --git a/src/stc-manager-plugin-appstatus.c b/src/stc-manager-plugin-appstatus.c old mode 100644 new mode 100755 index cab52ad..a79bc93 --- a/src/stc-manager-plugin-appstatus.c +++ b/src/stc-manager-plugin-appstatus.c @@ -64,24 +64,21 @@ int stc_plugin_appstatus_deinit(void) return STC_ERROR_NONE; } -int stc_plugin_appstatus_send_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_message_to_net_popup(content, type, app_id, iftype, limit); } @@ -89,41 +86,35 @@ int stc_plugin_appstatus_send_message(const char *content, 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