Fix API name (set_header_options -> set_options)
authorsung.goo.kim <sung.goo.kim@samsung.com>
Tue, 10 Nov 2015 02:21:54 +0000 (11:21 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 10 Nov 2015 10:13:59 +0000 (19:13 +0900)
Change-Id: Ic71dbffbf1ded5eab8ecf2fb7bf827ce0eadbb0b

lib/icl-remote-resource.c
lib/icl-response.c
lib/include/iotcon-request.h
lib/include/iotcon-response.h

index 57f5ad1f74a802bae909733af95649976a1b70a0..db40fe5c1e87ea9ba3078b8754d3ab342af5ae79 100644 (file)
@@ -383,15 +383,15 @@ API int iotcon_remote_resource_is_observable(iotcon_remote_resource_h resource,
 
 /* if header_options is NULL, then client's header_options is unset */
 API int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
-               iotcon_options_h header_options)
+               iotcon_options_h options)
 {
        RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
 
        if (resource->header_options)
                iotcon_options_destroy(resource->header_options);
 
-       if (header_options)
-               resource->header_options = icl_options_ref(header_options);
+       if (options)
+               resource->header_options = icl_options_ref(options);
        else
                resource->header_options = NULL;
 
index e17db38bcbb54593f7cfd1ac2fb1a4add3bd51ad..67b3066bddbdab2318e7011ded9575785defa3cf 100644 (file)
@@ -129,7 +129,7 @@ API int iotcon_response_set_representation(iotcon_response_h resp,
 }
 
 
-API int iotcon_response_set_header_options(iotcon_response_h resp,
+API int iotcon_response_set_options(iotcon_response_h resp,
                iotcon_options_h options)
 {
        RETV_IF(NULL == resp, IOTCON_ERROR_INVALID_PARAMETER);
index 9dac916f44e496c600745089233f7c0e375db275..f67f29fd3ea06b0e97ef078d126844d768d57789 100644 (file)
@@ -109,11 +109,12 @@ int iotcon_request_get_representation(iotcon_request_h request,
 
 /**
  * @brief Gets types of the request
+ * @details @a types could be oring the #iotcon_request_type_e
  *
  * @since_tizen 3.0
  *
  * @param[in] request The handle of the request
- * @param[out] types The types of the request
+ * @param[out] types The types of the request.
  *
  * @return 0 on success, otherwise a negative error value.
  * @retval #IOTCON_ERROR_NONE  Successful
index 1eda24111b67559b398a3cf5caa9e9bc178aa9e2..03c960b763525a32afa58c71a6df0556c6236c32 100644 (file)
@@ -182,7 +182,7 @@ int iotcon_response_set_representation(iotcon_response_h resp,
  * @see iotcon_response_create()
  * @see iotcon_response_destroy()
  */
-int iotcon_response_set_header_options(iotcon_response_h resp, iotcon_options_h options);
+int iotcon_response_set_options(iotcon_response_h resp, iotcon_options_h options);
 
 /**
  * @brief Send response for incoming request.