#include "icl-request.h"
/* The content of the request should not be freed by user. */
-API int iotcon_request_get_uri_path(iotcon_request_h request, char **uri_path)
-{
- RETV_IF(NULL == request, IOTCON_ERROR_INVALID_PARAMETER);
- RETV_IF(NULL == uri_path, IOTCON_ERROR_INVALID_PARAMETER);
-
- *uri_path = request->uri_path;
-
- return IOTCON_ERROR_NONE;
-}
-
-
-/* The content of the request should not be freed by user. */
API int iotcon_request_get_representation(iotcon_request_h request,
iotcon_representation_h *repr)
{
typedef struct icl_resource_request* iotcon_request_h;
/**
- * @brief Gets an URI path of the request
- *
- * @since_tizen 3.0
- * @remarks @a uri_path must not be released using free().
- *
- * @param[in] request The handle of the request
- * @param[out] uri_path The URI path of the request
- *
- * @return 0 on success, otherwise a negative error value.
- * @retval #IOTCON_ERROR_NONE Successful
- * @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @see iotcon_request_get_representation()
- * @see iotcon_request_get_types()
- * @see iotcon_request_get_options()
- * @see iotcon_request_get_query()
- * @see iotcon_request_get_observer_action()
- * @see iotcon_request_get_observer_id()
- */
-int iotcon_request_get_uri_path(iotcon_request_h request, char **uri_path);
-
-/**
* @brief Gets an representation of the request
*
* @since_tizen 3.0
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_types()
* @see iotcon_request_get_options()
* @see iotcon_request_get_query()
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_representation()
* @see iotcon_request_get_options()
* @see iotcon_request_get_query()
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_representation()
* @see iotcon_request_get_types()
* @see iotcon_request_get_query()
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_representation()
* @see iotcon_request_get_types()
* @see iotcon_request_get_options()
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_representation()
* @see iotcon_request_get_types()
* @see iotcon_request_get_options()
* @retval #IOTCON_ERROR_NONE Successful
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @see iotcon_request_get_uri_path()
* @see iotcon_request_get_representation()
* @see iotcon_request_get_types()
* @see iotcon_request_get_options()