From 388732bfab4ea77b1e263c8c0c45062b700137da Mon Sep 17 00:00:00 2001 From: chanywa Date: Fri, 23 Sep 2016 18:39:42 +0900 Subject: [PATCH] fixed descriptions, and routines to check if parameters are vaild Change-Id: I1888fd708659a06b7bae72e777e7cb566c934113 --- capi-maps-service.changes | 5 +++++ include/maps_address.h | 2 +- packaging/capi-maps-service.spec | 2 +- src/api/maps_service.cpp | 8 ++++---- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/capi-maps-service.changes b/capi-maps-service.changes index 1afc7c7..b3c34a5 100644 --- a/capi-maps-service.changes +++ b/capi-maps-service.changes @@ -1,3 +1,8 @@ +[Version] capi-maps-service_0.6.5 +[Date] 19 Sep 2016 +[Title] fixed descrpitions +[Developer] Seechan Kim + [Version] capi-maps-service_0.6.4 [Date] 31 Aug 2016 [Title] fixed to return NOT_FOUND, not INVALID_PARAMETER, if a member variable of the handle is NULL diff --git a/include/maps_address.h b/include/maps_address.h index a1a1d3c..6aff829 100644 --- a/include/maps_address.h +++ b/include/maps_address.h @@ -592,7 +592,7 @@ int maps_address_list_get_length(maps_address_list_h address_list, int *length); * @return @c true to continue with the next iteration of the loop, \n * @c false to break out of the loop * - * @see maps_address_list_foreach_address() + * @see maps_address_list_foreach() * @see maps_address_list_destroy() */ typedef bool (*maps_address_cb)(int index, maps_address_h address, void *user_data); diff --git a/packaging/capi-maps-service.spec b/packaging/capi-maps-service.spec index a53daf4..1e773d0 100644 --- a/packaging/capi-maps-service.spec +++ b/packaging/capi-maps-service.spec @@ -1,6 +1,6 @@ Name: capi-maps-service Summary: Tizen Maps Service API -Version: 0.6.4 +Version: 0.6.5 Release: 1 Group: Location/API License: Apache-2.0 diff --git a/src/api/maps_service.cpp b/src/api/maps_service.cpp index c0edb80..94552a9 100644 --- a/src/api/maps_service.cpp +++ b/src/api/maps_service.cpp @@ -247,8 +247,8 @@ EXPORT_API int maps_service_provider_is_service_supported(const maps_service_h m return MAPS_ERROR_NOT_SUPPORTED; if (!maps || !supported) return MAPS_ERROR_INVALID_PARAMETER; - if ((service < MAPS_SERVICE_GEOCODE) - || (service > MAPS_SERVICE_SEARCH_PLACE_LIST)) + if (!(service >= MAPS_SERVICE_GEOCODE && service <= MAPS_SERVICE_SEARCH_GET_PLACE_DETAILS) && + !(service >= MAPS_SERVICE_VIEW && service <= MAPS_SERVICE_VIEW_SNAPSHOT)) return MAPS_ERROR_INVALID_PARAMETER; const plugin::plugin_s *p = __extract_plugin(maps); @@ -265,8 +265,8 @@ EXPORT_API int maps_service_provider_is_data_supported(const maps_service_h maps return MAPS_ERROR_NOT_SUPPORTED; if (!maps || !supported) return MAPS_ERROR_INVALID_PARAMETER; - if ((data < MAPS_PLACE_ADDRESS) - || (data > MAPS_ROUTE_SEGMENTS_MANEUVERS)) + if (!(data >= MAPS_PLACE_ADDRESS && data <= MAPS_ROUTE_SEGMENTS_MANEUVERS) && + !(data >= MAPS_VIEW_TRAFFIC && data <= MAPS_VIEW_SCALEBAR)) return MAPS_ERROR_INVALID_PARAMETER; const plugin::plugin_s *p = __extract_plugin(maps); -- 2.34.1