diff options
author | youngman <yman.jung@samsung.com> | 2016-08-11 14:29:48 +0900 |
---|---|---|
committer | Youngjae Shin <yj99.shin@samsung.com> | 2016-08-11 00:36:52 -0700 |
commit | 8374d297ecd6c197374663276daa87ef11c39300 (patch) | |
tree | 2660753fa2b7f493cebff3e56b7373f1d571be33 | |
parent | b4305baeabedbc60f02489412830e6dfffe72e82 (diff) | |
download | iotcon-8374d297ecd6c197374663276daa87ef11c39300.tar.gz iotcon-8374d297ecd6c197374663276daa87ef11c39300.tar.bz2 iotcon-8374d297ecd6c197374663276daa87ef11c39300.zip |
Set device info when initsubmit/tizen/20160811.073905accepted/tizen/wearable/20160811.090041accepted/tizen/tv/20160811.090024accepted/tizen/mobile/20160811.090007accepted/tizen/ivi/20160811.090055accepted/tizen/common/20160812.140829
Change-Id: Ice3f5bfe202ae77940536e4fc83f1a38f79fa945
Signed-off-by: youngman <yman.jung@samsung.com>
-rw-r--r-- | src/ic.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -23,6 +23,8 @@ #define ICL_TIMEOUT_DEFAULT 30 /* 30 sec */ #define ICL_TIMEOUT_MAX 60*60 /* 60 min */ +#define ICL_DEFAULT_DEVICE_NAME "UNKNOWN" + static pthread_t icl_thread; static int icl_timeout_seconds = ICL_TIMEOUT_DEFAULT; static int icl_init_count; @@ -62,6 +64,14 @@ int icl_initialize(const char *file_path, bool is_pt) ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT); return ret; } + + ret = icl_ioty_set_device_info(ICL_DEFAULT_DEVICE_NAME); + if (IOTCON_ERROR_NONE != ret) { + ERR("icl_ioty_set_device_info() Fail(%d)", ret); + icl_ioty_deinit(icl_thread); + ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT); + return ret; + } } icl_init_count++; ic_utils_mutex_unlock(IC_UTILS_MUTEX_INIT); |