(ACR) Remove iotcon_request_get_uri_path()
authoryoungman <yman.jung@samsung.com>
Thu, 22 Oct 2015 08:19:42 +0000 (17:19 +0900)
committeryoungman <yman.jung@samsung.com>
Tue, 3 Nov 2015 11:08:20 +0000 (20:08 +0900)
Change-Id: Id4455ca563564b1fe8149b3868cbf997b29df0a5
Signed-off-by: youngman <yman.jung@samsung.com>
lib/icl-request.c
lib/icl-request.h
lib/icl-resource.c
lib/include/iotcon-struct.h

index 0231854..a6f7bc5 100644 (file)
 #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)
 {
index 9978b79..e4727ad 100644 (file)
@@ -27,7 +27,6 @@ struct icl_observe_info {
 
 struct icl_resource_request {
        int types;
-       char *uri_path;
        iotcon_options_h header_options;
        iotcon_query_h query;
        struct icl_observe_info observation_info;
index 9fdb2a5..4da5159 100644 (file)
@@ -116,9 +116,6 @@ static void _icl_request_handler(GDBusConnection *connection,
        }
        g_variant_iter_free(repr_iter);
 
-       /* TODO remove request.uri */
-       request.uri_path = "temp_uri_path";
-
        /* for iotcon_resource_notify */
        if (IOTCON_REQUEST_OBSERVE & request.types) {
                int observer_id = request.observation_info.observer_id;
index 5f223c3..b1c7879 100644 (file)
@@ -927,28 +927,6 @@ int iotcon_remote_resource_set_options(iotcon_remote_resource_h resource,
 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
@@ -961,7 +939,6 @@ int iotcon_request_get_uri_path(iotcon_request_h request, char **uri_path);
  * @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()
@@ -983,7 +960,6 @@ int iotcon_request_get_representation(iotcon_request_h request,
  * @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()
@@ -1005,7 +981,6 @@ int iotcon_request_get_types(iotcon_request_h request, int *types);
  * @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()
@@ -1027,7 +1002,6 @@ int iotcon_request_get_options(iotcon_request_h request, iotcon_options_h *optio
  * @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()
@@ -1049,7 +1023,6 @@ int iotcon_request_get_query(iotcon_request_h request, iotcon_query_h *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()
@@ -1070,7 +1043,6 @@ int iotcon_request_get_observer_action(iotcon_request_h request, int *action);
  * @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()