Fix doxygen errta 58/69558/2
authorDonghee Ye <donghee.ye@samsung.com>
Mon, 16 May 2016 01:34:17 +0000 (10:34 +0900)
committerDonghee Ye <donghee.ye@samsung.com>
Mon, 16 May 2016 02:41:12 +0000 (11:41 +0900)
Change-Id: I6eb7a96e0a55a7405c07a58a654f9134aefac4d9

doc/iotcon_doc.h
lib/include/iotcon-constant.h
lib/include/iotcon-list.h
lib/include/iotcon-lite-resource.h
lib/include/iotcon-resource-interfaces.h
lib/include/iotcon-resource-types.h
lib/include/iotcon-resource.h
lib/include/iotcon-response.h
lib/include/iotcon-state.h

index 4454c0587dbe9629472f0681e3d1de1bfca3d27b..56fc73ea727f7098f50d3e13b5c5085471fb19fe 100644 (file)
@@ -34,7 +34,7 @@
  * See http://iotivity.org and http://openinterconnect.org for more information.
  *
  * @subsection CAPI_IOT_CONNECTIVITY_MODULE_RESOURCE Resource
- * A Resource is a component in a server that can be viewed and conrolled by another client.\n
+ * A Resource is a component in a server that can be viewed and controlled by another client.\n
  * There are different resource types, for example a temperature sensor, a light controller etc.\n
  *
  * @subsection CAPI_IOT_CONNECTIVITY_MODULE_RESOURCE_REGISTRATION Resource registration
index 0d745373f7d2fe615686732331512ee6258b2e53..ecd6769a3edd1ba5111ad0cf3be0b2197942d8dd 100644 (file)
@@ -106,7 +106,7 @@ typedef enum {
  */
 typedef enum {
        IOTCON_OBSERVE_IGNORE_OUT_OF_ORDER = 0, /**< Indicates observation request for most up-to-date notifications only */
-       IOTCON_OBSERVE_ACCEPT_OUT_OF_ORDER = 1 /**< Indicates observation request for all notifications including stale notifications */
+       IOTCON_OBSERVE_ACCEPT_OUT_OF_ORDER = 1 /**< Indicates observation request for all notifications including state notifications */
 } iotcon_observe_policy_e;
 
 /**
index b4bd011ab776928cca233b3c4c98717674535d61..2e0ee5db43a567fc036841959387ff6485017cc0 100644 (file)
@@ -106,7 +106,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                        return;
                }
 
-               ret = itocon_state_set_list(state, "ids", list);
+               ret = iotcon_state_add_list(state, "ids", list);
                if (IOTCON_ERROR_NONE != ret) {
                        iotcon_list_destroy(list);
                        iotcon_state_destroy(state);
index e7aa0bc8384cb9d206e7aa5aba17964135016998..54f649d91fbcf90e4c76f807c7459fd3489e59db 100644 (file)
@@ -35,7 +35,7 @@
  * This API provides that the users manages resources without request handler.
  * When client request by CRUD functions, internal default request handler will be invoked.
  * The default request handler will create response and send to client automatically.
- * When updated state by iotcon_lite_update_state(), changes will notify to observers.
+ * When updated state by iotcon_lite_resource_update_state(), changes will notify to observers.
  *
  * Example :
  * @code
index 335bf400645427ebdd5c6712ed43e6f951606025..697e58cd319a22da692e7edd8024da9333706f7e 100644 (file)
@@ -50,7 +50,7 @@ static void _create_light_resource()
        int ret;
        iotcon_resource_h resource = NULL;
        iotcon_resource_interfaces_h resource_ifaces = NULL;
-       iotcon_resource_interfaces_h resource_types = NULL;
+       iotcon_resource_types_h resource_types = NULL;
 
        ret = iotcon_resource_types_create(&resource_types);
        if (IOTCON_ERROR_NONE != ret)
index 27d5420aa96d13245ddf85cc4be950ecaf45d033..4d35d23e107b9bb9584f972ddb970bb11bc74ac0 100644 (file)
@@ -50,7 +50,7 @@ static void _create_light_resource()
        int ret;
        iotcon_resource_h resource = NULL;
        iotcon_resource_interfaces_h resource_ifaces = NULL;
-       iotcon_resource_interfaces_h resource_types = NULL;
+       iotcon_resource_types_h resource_types = NULL;
 
        ret = iotcon_resource_types_create(&resource_types);
        if (IOTCON_ERROR_NONE != ret)
index 1a507f85f5ce82505c4554129e7d14f5b82a58a8..ee9cbe1ded582b8b7be549a2ba8e3bdd2e657bc5 100644 (file)
@@ -57,7 +57,7 @@ static void _create_resource()
        int ret;
        int properties;
        iotcon_resource_interfaces_h resource_ifaces = NULL;
-       iotcon_resource_interfaces_h resource_types = NULL;
+       iotcon_resource_types_h resource_types = NULL;
        iotcon_resource_h resource_door = NULL;
 
        // 1. create room resource
@@ -350,7 +350,7 @@ int iotcon_resource_bind_type(iotcon_resource_h resource_handle,
                const char *resource_type);
 
 /**
- * @brief Binds a request handler to the resource.
+ * @brief Sets a request handler to the resource.
  * @details When the resource receive CRUD request, iotcon_request_handler_cb() will be
  * called.
  *
index 07abf3aaa8dfa3c394d08d3736ff4f98c63530d1..d54a4f6961e42c48b32edef56ded426e0ff66b9e 100644 (file)
@@ -208,7 +208,6 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
  * @retval #IOTCON_ERROR_OUT_OF_MEMORY  Out of memory
  *
  * @see iotcon_response_destroy()
- * @see iotcon_response_set()
  */
 int iotcon_response_create(iotcon_request_h request, iotcon_response_h *response);
 
@@ -220,7 +219,6 @@ int iotcon_response_create(iotcon_request_h request, iotcon_response_h *response
  * @param[in] resp The handle of the response
  *
  * @see iotcon_response_create()
- * @see iotcon_response_set()
  */
 void iotcon_response_destroy(iotcon_response_h resp);
 
index ed8c3980845bdb1b759519fe64508c0bf369b5ff..26b69e5a4c5cb4a03eda912b694cb4546b837b1e 100644 (file)
@@ -80,7 +80,7 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques
                        return;
                }
 
-               ret = itocon_state_set_int(state, "brightness", 75);
+               ret = iotcon_state_add_int(state, "brightness", 75);
                if (IOTCON_ERROR_NONE != ret) {
                        iotcon_state_destroy(state);
                        iotcon_representation_destroy(representation);