fixed descriptions, and routines to check if parameters are vaild 99/89399/1
authorchanywa <cbible.kim@samsung.com>
Fri, 23 Sep 2016 09:39:42 +0000 (18:39 +0900)
committerchanywa <cbible.kim@samsung.com>
Fri, 23 Sep 2016 09:39:42 +0000 (18:39 +0900)
Change-Id: I1888fd708659a06b7bae72e777e7cb566c934113

capi-maps-service.changes
include/maps_address.h
packaging/capi-maps-service.spec
src/api/maps_service.cpp

index 1afc7c7..b3c34a5 100644 (file)
@@ -1,3 +1,8 @@
+[Version]   capi-maps-service_0.6.5
+[Date]      19 Sep 2016
+[Title]     fixed descrpitions
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
 [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
index a1a1d3c..6aff829 100644 (file)
@@ -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);
index a53daf4..1e773d0 100644 (file)
@@ -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
index c0edb80..94552a9 100644 (file)
@@ -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);