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 "Return errors to caller" into tizen_5.5
[platform/core/connectivity/stc-manager.git]
/
src
/
helper
/
helper-net-cls.c
diff --git
a/src/helper/helper-net-cls.c
b/src/helper/helper-net-cls.c
index
3f460f7
..
350dfb6
100755
(executable)
--- a/
src/helper/helper-net-cls.c
+++ b/
src/helper/helper-net-cls.c
@@
-87,7
+87,7
@@
static stc_error_e __get_classid_from_cgroup(const char *cgroup,
return STC_ERROR_NONE;
}
return STC_ERROR_NONE;
}
-stc_error_e init_current_classid(void)
+
API
stc_error_e init_current_classid(void)
{
int ret = 0;
struct stat stat_buf;
{
int ret = 0;
struct stat stat_buf;
@@
-172,12
+172,12
@@
API uint32_t get_classid_by_app_id(const char *app_id, int create)
return classid;
handle_error:
return classid;
handle_error:
-
- STC_LOGE("error_code: [%d]", ret); //LCOV_EXCL_LINE
+ if (STC_DEBUG_LOG)
+
STC_LOGE("error_code: [%d]", ret); //LCOV_EXCL_LINE
return STC_UNKNOWN_CLASSID; //LCOV_EXCL_LINE
}
return STC_UNKNOWN_CLASSID; //LCOV_EXCL_LINE
}
-stc_error_e place_pids_to_net_cgroup(const int pid, const char *app_id)
+
API
stc_error_e place_pids_to_net_cgroup(const int pid, const char *app_id)
{
char child_buf[21 + MAX_DEC_SIZE(int) + MAX_DEC_SIZE(int) + 1];
const char *path_to_net_cgroup_dir = NULL;
{
char child_buf[21 + MAX_DEC_SIZE(int) + MAX_DEC_SIZE(int) + 1];
const char *path_to_net_cgroup_dir = NULL;