[UCT][IoTCon][ACR-630][Remove iface parameter on iotcon_response_set_represesntation...
authorsung.goo.kim <sung.goo.kim@samsung.com>
Thu, 19 May 2016 07:01:07 +0000 (16:01 +0900)
committersung.goo.kim <sung.goo.kim@samsung.com>
Fri, 3 Jun 2016 00:10:50 +0000 (09:10 +0900)
Change-Id: Ib96f524b623704532b670c7760e867d37e6d3762
Signed-off-by: sung.goo.kim <sung.goo.kim@samsung.com>
src/utc/iotcon/utc-iotcon-common.c
src/utc/iotcon/utc-iotcon-resource.c
src/utc/iotcon/utc-iotcon-struct.c

index 83ac7d5..ed96a6a 100755 (executable)
@@ -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);
index 34ddb9c..2ed7f4a 100755 (executable)
@@ -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);
index 5e56083..5abdc34 100755 (executable)
@@ -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;
        }