Fix doxygen errta 13/79313/3
authorDonghee Ye <donghee.ye@samsung.com>
Mon, 11 Jul 2016 02:25:05 +0000 (11:25 +0900)
committerDonghee Ye <donghee.ye@samsung.com>
Tue, 12 Jul 2016 06:45:23 +0000 (15:45 +0900)
Change-Id: I799e4b43a21969dcca197cfa12105c3db2a1aa92

lib/include/iotcon-attributes.h
lib/include/iotcon-list.h
lib/include/iotcon-observers.h
lib/include/iotcon-request.h
lib/include/iotcon-response.h

index 4f61667b2f5a3879a681c3ce797648bb15e6d303..e8ade6c52d48c6d0682f7ba67497e0d580be1380 100644 (file)
@@ -42,13 +42,13 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                void *user_data)
 {
        int ret;
-       int types;
+       iotcon_request_type_e type;
 
-       ret = iotcon_request_get_types(request, &types);
+       ret = iotcon_request_get_request_type(request, &type);
        if (IOTCON_ERROR_NONE != ret)
                return;
 
-       if (IOTCON_REQUEST_GET & types) {
+       if (IOTCON_REQUEST_GET == type) {
                iotcon_response_h response = NULL;
                iotcon_representation_h representation = NULL;
                iotcon_attributes_h attributes = NULL;
index effda3ce1510bddcebda63561fbb7bb2434fbf83..9982584b6f432631b8f9ae868d9fc936e9bb99ad 100644 (file)
@@ -40,13 +40,13 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                void *user_data)
 {
        int ret;
-       iot types;
+       iotcon_request_type_e type;
 
-       ret = iotcon_request_get_types(request, &types);
+       ret = iotcon_request_get_request_type(request, &type);
        if (IOTCON_ERROR_NONE != ret)
                return;
 
-       if (IOTCON_REQUEST_GET & types) {
+       if (IOTCON_REQUEST_GET == type) {
                iotcon_response_h response = NULL;
                iotcon_representation_h representation = NULL;
                iotcon_attributes_h attributes = NULL;
index dcbb7a5c65c981315b2d427b485ce435baaeb1df..97a4a6432f8d04a599c138988ba401dc3846f314 100644 (file)
@@ -42,17 +42,17 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                void *user_data)
 {
        int ret, observe_id;
-       iotcon_request_type_e types;
+       iotcon_request_type_e type;
        iotcon_observe_type_e observe_type;
        iotcon_representation_h repr = NULL;
 
        ...
-       ret = iotcon_request_get_types(request, &types);
+       ret = iotcon_request_get_request_type(request, &type);
        if (IOTCON_ERROR_NONE != ret)
                return;
        ...
 
-       if (IOTCON_REQUEST_PUT & types) {
+       if (IOTCON_REQUEST_PUT == type) {
                iotcon_attributes_h attributes = NULL;
                iotcon_representation_h repr = NULL;
                ...
index 4345f6d61da2a01aea3969cfe8e34f34bc5cb137..81da9a7007f5559aa7ac2f6fd3d9d4f64cffdf7a 100644 (file)
@@ -41,7 +41,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                void *user_data)
 {
        int ret, observe_id;
-       iotcon_request_type_e types;
+       iotcon_request_type_e type;
        iotcon_observe_type_e observe_type;
        iotcon_options_h options = NULL;
        iotcon_query_h query = NULL;
@@ -59,29 +59,29 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                ...
        }
 
-       ret = iotcon_request_get_types(request, &types);
+       ret = iotcon_request_get_request_type(request, &type);
        if (IOTCON_ERROR_NONE != ret)
                return;
 
-       if (IOTCON_REQUEST_GET & types) {
+       if (IOTCON_REQUEST_GET == type) {
                // handle get
                ...
        }
-       if (IOTCON_REQUEST_PUT & types) {
+       if (IOTCON_REQUEST_PUT == type) {
                // handle put
                ret = iotcon_request_get_representation(request, &repr);
                if (IOTCON_ERROR_NONE != ret)
                        return;
                ...
        }
-       if (IOTCON_REQUEST_POST & types) {
+       if (IOTCON_REQUEST_POST == type) {
                // handle post
                ret = iotcon_request_get_representation(request, &repr);
                if (IOTCON_ERROR_NONE != ret)
                        return;
                ...
        }
-       if (IOTCON_REQUEST_DELETE & types) {
+       if (IOTCON_REQUEST_DELETE == type) {
                // handle delete
                ret = iotcon_request_get_representation(request, &repr);
                if (IOTCON_ERROR_NONE != ret)
index 14898f1de39ca5c64882b62e3ab33c3f8b614c2f..2709d0b7e419a32ddb997fe772acb0a7f96d151e 100644 (file)
@@ -105,10 +105,10 @@ static iotcon_attributes_h _create_attributes()
 static void _request_handler(iotcon_resource_h resource, iotcon_request_h request, void *user_data)
 {
        int ret;
-       int types;
+       iotcon_request_type_e type;
        iotcon_query_h query = NULL;
 
-       ret = iotcon_request_get_types(request, &types);
+       ret = iotcon_request_get_request_type(request, &type);
        if (IOTCON_ERROR_NONE != ret)
                return;
 
@@ -119,7 +119,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                        return;
        }
 
-       if (IOTCON_REQUEST_GET & types) {
+       if (IOTCON_REQUEST_GET == type) {
                iotcon_response_h response = NULL;
                iotcon_representation_h repr = NULL;
                iotcon_attributes_h attributes = NULL;