From: kj7.sung Date: Thu, 28 Apr 2016 05:51:55 +0000 (+0900) Subject: Location setting restriction to support DPM X-Git-Tag: accepted/tizen/common/20160518.125042^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F67701%2F5;p=platform%2Fcore%2Fapi%2Flocation-manager.git Location setting restriction to support DPM Signed-off-by: kj7.sung Change-Id: I2bae6eec0e2f9d2433bd0eef3b452a3d92904c6f --- diff --git a/include/location_batch.h b/include/location_batch.h index 9fba862..3a66ef9 100644 --- a/include/location_batch.h +++ b/include/location_batch.h @@ -89,6 +89,8 @@ int location_manager_stop_batch(location_manager_h manager); */ int location_manager_foreach_location_batch(location_manager_h manager, location_batch_get_location_cb callback, void *user_data); +int location_manager_enable_restriction(bool enable); + /** * @} * @} diff --git a/packaging/capi-location-manager.spec b/packaging/capi-location-manager.spec index 560e626..79b94dd 100644 --- a/packaging/capi-location-manager.spec +++ b/packaging/capi-location-manager.spec @@ -1,6 +1,6 @@ Name: capi-location-manager Summary: A Location Manager library in Tizen Native API -Version: 0.7.1 +Version: 0.7.2 Release: 1 Group: Location/API License: Apache-2.0 diff --git a/src/location_batch.c b/src/location_batch.c index e586609..7017361 100644 --- a/src/location_batch.c +++ b/src/location_batch.c @@ -151,3 +151,10 @@ EXPORT_API int location_manager_foreach_location_batch(location_manager_h manage batch = NULL; return LOCATIONS_ERROR_NONE; } + +EXPORT_API int location_manager_enable_restriction(bool enable) +{ + int ret = LOCATION_ERROR_NONE; + ret = location_enable_restriction(enable); + return __convert_error_code(ret); +}