/* 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;
}
-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);
/**
* @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
* @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.