From: sung.goo.kim Date: Thu, 19 May 2016 07:01:07 +0000 (+0900) Subject: [UCT][IoTCon][ACR-630][Remove iface parameter on iotcon_response_set_represesntation... X-Git-Tag: Beta_RC10~131^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69bf8744e064de5e46a391f20b2632a531d445a9;p=test%2Ftct%2Fnative%2Fapi.git [UCT][IoTCon][ACR-630][Remove iface parameter on iotcon_response_set_represesntation() API] Change-Id: Ib96f524b623704532b670c7760e867d37e6d3762 Signed-off-by: sung.goo.kim --- diff --git a/src/utc/iotcon/utc-iotcon-common.c b/src/utc/iotcon/utc-iotcon-common.c index 83ac7d5..ed96a6a 100755 --- a/src/utc/iotcon/utc-iotcon-common.c +++ b/src/utc/iotcon/utc-iotcon-common.c @@ -75,7 +75,7 @@ int icutc_send_ok_response(iotcon_request_h request) return 1; } - ret = iotcon_response_set_representation(response, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(response, repr); if (IOTCON_ERROR_NONE != ret) { ICUTC_ERR("iotcon_response_set_representation() Fail(%d)", ret); iotcon_representation_destroy(repr); diff --git a/src/utc/iotcon/utc-iotcon-resource.c b/src/utc/iotcon/utc-iotcon-resource.c index 34ddb9c..2ed7f4a 100755 --- a/src/utc/iotcon/utc-iotcon-resource.c +++ b/src/utc/iotcon/utc-iotcon-resource.c @@ -149,7 +149,7 @@ static void _resource_request_handler(iotcon_resource_h resource, return; } - ret = iotcon_response_set_representation(response, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(response, repr); if (IOTCON_ERROR_NONE != ret) { ICUTC_ERR("iotcon_response_set_representation() Fail(%d)", ret); iotcon_response_destroy(response); @@ -199,7 +199,7 @@ static void _resource_request_handler2(iotcon_resource_h resource, return; } - ret = iotcon_response_set_representation(response, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(response, repr); if (IOTCON_ERROR_NONE != ret) { ICUTC_ERR("iotcon_response_set_representation() Fail(%d)", ret); iotcon_response_destroy(response); diff --git a/src/utc/iotcon/utc-iotcon-struct.c b/src/utc/iotcon/utc-iotcon-struct.c index 5e56083..5abdc34 100755 --- a/src/utc/iotcon/utc-iotcon-struct.c +++ b/src/utc/iotcon/utc-iotcon-struct.c @@ -195,7 +195,7 @@ static int _struct_response_set_representation_n(iotcon_request_h request) return 0; } - ret = iotcon_response_set_representation(NULL, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(NULL, repr); if (IOTCON_ERROR_INVALID_PARAMETER != ret) { ICUTC_ERR("iotcon_response_set_representation() Fail(%d)", ret); iotcon_representation_destroy(repr); @@ -225,7 +225,7 @@ static int _struct_response_set_representation_p(iotcon_request_h request) return 0; } - ret = iotcon_response_set_representation(response, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(response, repr); if (IOTCON_ERROR_NONE != ret) { ICUTC_ERR("iotcon_response_set_representation() Fail(%d)", ret); iotcon_representation_destroy(repr); @@ -3880,7 +3880,7 @@ int utc_iotcon_response_set_representation_n(void) iotcon_representation_h repr = NULL; if (false == g_feature) { - ret = iotcon_response_set_representation(NULL, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(NULL, repr); ICUTC_ASSERT_EQ(ret, IOTCON_ERROR_NOT_SUPPORTED); return 0; } @@ -3901,7 +3901,7 @@ int utc_iotcon_response_set_representation_p(void) iotcon_representation_h repr = NULL; if (false == g_feature) { - ret = iotcon_response_set_representation(NULL, IOTCON_INTERFACE_DEFAULT, repr); + ret = iotcon_response_set_representation(NULL, repr); ICUTC_ASSERT_EQ(ret, IOTCON_ERROR_NOT_SUPPORTED); return 0; }