From: youngman Date: Thu, 22 Oct 2015 08:19:42 +0000 (+0900) Subject: (ACR) Remove iotcon_request_get_uri_path() X-Git-Tag: accepted/tizen/mobile/20151201.031626~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d9741b9944833e1056ed08ac6e649ab206709d2;p=platform%2Fcore%2Fiot%2Fiotcon.git (ACR) Remove iotcon_request_get_uri_path() Change-Id: Id4455ca563564b1fe8149b3868cbf997b29df0a5 Signed-off-by: youngman --- diff --git a/lib/icl-request.c b/lib/icl-request.c index 0231854..a6f7bc5 100644 --- a/lib/icl-request.c +++ b/lib/icl-request.c @@ -19,18 +19,6 @@ #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) { diff --git a/lib/icl-request.h b/lib/icl-request.h index 9978b79..e4727ad 100644 --- a/lib/icl-request.h +++ b/lib/icl-request.h @@ -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; diff --git a/lib/icl-resource.c b/lib/icl-resource.c index 9fdb2a5..4da5159 100644 --- a/lib/icl-resource.c +++ b/lib/icl-resource.c @@ -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; diff --git a/lib/include/iotcon-struct.h b/lib/include/iotcon-struct.h index 5f223c3..b1c7879 100644 --- a/lib/include/iotcon-struct.h +++ b/lib/include/iotcon-struct.h @@ -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()