summaryrefslogtreecommitdiff
path: root/src/ic-ioty-ocprocess.c
diff options
context:
space:
mode:
authorJooseok Park <jooseok.park@samsung.com>2016-12-21 14:39:21 +0900
committerJooseok Park <jooseok.park@samsung.com>2016-12-21 14:41:12 +0900
commit367e91b244ceab0b37a6d0be04be5d3a1a190290 (patch)
treeabebae8fc361f342271e47bfd6d3593c53e6fab0 /src/ic-ioty-ocprocess.c
parent41e94254edeca4344310fcc9d3ccfcf4519e1fa3 (diff)
downloadiotcon-367e91b244ceab0b37a6d0be04be5d3a1a190290.tar.gz
iotcon-367e91b244ceab0b37a6d0be04be5d3a1a190290.tar.bz2
iotcon-367e91b244ceab0b37a6d0be04be5d3a1a190290.zip
- it is helpful for debugging tc issues Change-Id: I163ae9870f9a93832af0f71f2e50a3616c5c4b47
Diffstat (limited to 'src/ic-ioty-ocprocess.c')
-rw-r--r--src/ic-ioty-ocprocess.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ic-ioty-ocprocess.c b/src/ic-ioty-ocprocess.c
index 15659b1..2e1fe46 100644
--- a/src/ic-ioty-ocprocess.c
+++ b/src/ic-ioty-ocprocess.c
@@ -57,6 +57,7 @@ void icl_ioty_ocprocess_start()
API int iotcon_polling_get_interval(int *interval)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(NULL == interval, IOTCON_ERROR_INVALID_PARAMETER);
@@ -68,6 +69,7 @@ API int iotcon_polling_get_interval(int *interval)
API int iotcon_polling_set_interval(int interval)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
RETV_IF(interval <= ICL_IOTY_TIME_INTERVAL_MIN, IOTCON_ERROR_INVALID_PARAMETER);
@@ -81,6 +83,7 @@ API int iotcon_polling_set_interval(int interval)
API int iotcon_polling_invoke(void)
{
+ FN_CALL;
RETV_IF(false == ic_utils_check_ocf_feature(), IOTCON_ERROR_NOT_SUPPORTED);
ic_utils_cond_signal(IC_UTILS_COND_POLLING);
@@ -138,6 +141,7 @@ static gboolean _icl_ioty_ocprocess_find_idle_cb(gpointer p)
resource = resource_list->data;
resource->is_found = true;
cb = (iotcon_found_resource_cb)cb_data->cb;
+ INFO("Call the callback");
if (IOTCON_FUNC_STOP == cb(resource, IOTCON_ERROR_NONE, cb_data->user_data)) {
/* Stop */
INFO("Stop the callback");