From 0a3a25a77ac836905cd26932c54ea9f1ce13cb38 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Thu, 28 Apr 2016 14:51:55 +0900 Subject: [PATCH] Location setting restriction to support DPM Signed-off-by: kj7.sung Change-Id: I2bae6eec0e2f9d2433bd0eef3b452a3d92904c6f --- include/location_batch.h | 2 ++ packaging/capi-location-manager.spec | 2 +- src/location_batch.c | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) 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); +} -- 2.34.1