projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix a bug by wrong declaration" into tizen
[platform/core/connectivity/stc-manager.git]
/
src
/
stc-manager-plugin-appstatus.c
diff --git
a/src/stc-manager-plugin-appstatus.c
b/src/stc-manager-plugin-appstatus.c
old mode 100644
(file)
new mode 100755
(executable)
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;
}
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)
{
const char *type, const char *app_id, const char *iftype, const char *limit)
{
- __STC_LOG_FUNC_ENTER__;
-
if (!stc_plugin_enabled) {
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) {
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;
}
return STC_ERROR_UNINITIALIZED;
}
- __STC_LOG_FUNC_EXIT__;
return stc_plugin->send_message_to_net_popup(content,
type, app_id, iftype, limit);
}
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)
{
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) {
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) {
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;
}
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)
{
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) {
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) {
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;
}
return STC_ERROR_UNINITIALIZED;
}
- __STC_LOG_FUNC_EXIT__;
return stc_plugin->deregister_state_changed_cb(stc);
}
//LCOV_EXCL_STOP
return stc_plugin->deregister_state_changed_cb(stc);
}
//LCOV_EXCL_STOP