From: kj7.sung Date: Wed, 31 Aug 2016 05:25:29 +0000 (+0900) Subject: API deprecation warning message X-Git-Tag: submit/tizen/20160831.044825^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F86207%2F2;p=platform%2Fcore%2Fapi%2Flocation-manager.git API deprecation warning message Signed-off-by: kj7.sung Change-Id: I60c9fe4e55ca913af16bb3cbc13324190e46ae75 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index db1aff2..edcb331 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ FOREACH(flag ${dependents_CFLAGS}) ENDFOREACH(flag) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIC -Wall -Werror") +#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fvisibility=hidden -fPIC -Wall -Werror -Wno-error=deprecated-declarations") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") IF("${ARCH}" STREQUAL "arm") diff --git a/include/locations.h b/include/locations.h index 6f1eba6..81c8c9a 100755 --- a/include/locations.h +++ b/include/locations.h @@ -17,6 +17,7 @@ #ifndef __TIZEN_LOCATION_LOCATIONS_H__ #define __TIZEN_LOCATION_LOCATIONS_H__ +#include #include #include #include @@ -672,7 +673,7 @@ int location_manager_get_last_accuracy(location_manager_h manager, location_accu * @retval #LOCATIONS_ERROR_INVALID_PARAMETER Invalid argument * @retval #LOCATIONS_ERROR_NOT_SUPPORTED Not supported */ -int location_manager_get_accessibility_state(location_accessibility_state_e *state); +int location_manager_get_accessibility_state(location_accessibility_state_e *state) TIZEN_DEPRECATED_API; /** * @brief Registers a callback function to be invoked at defined interval with updated position information. diff --git a/packaging/capi-location-manager.changes b/packaging/capi-location-manager.changes index edaa3b1..04e87c9 100644 --- a/packaging/capi-location-manager.changes +++ b/packaging/capi-location-manager.changes @@ -1,3 +1,9 @@ +[Version] capi-location-manager_0.7.3 +[Date] 18 Aug 2016 +[Title] Change mock location behavior +[Developer] Kyoungjun Sung + +================================================================================ [Version] capi-location-manager_0.7.1 [Date] 15 Apr 2016 [Title] Change batch range to support device behavior diff --git a/packaging/capi-location-manager.spec b/packaging/capi-location-manager.spec index 79b94dd..7753586 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.2 +Version: 0.7.3 Release: 1 Group: Location/API License: Apache-2.0 diff --git a/src/locations.c b/src/locations.c index ff1b7be..4a46c58 100755 --- a/src/locations.c +++ b/src/locations.c @@ -1023,6 +1023,7 @@ EXPORT_API int location_manager_get_last_accuracy(location_manager_h manager, lo EXPORT_API int location_manager_get_accessibility_state(location_accessibility_state_e *state) { + dlog_print(DLOG_WARN, LOG_TAG, "DEPRECATION WARNING: location_manager_get_accessibility_state() is deprecated and will be removed from next release."); LOCATIONS_LOGD("location_manager_get_accessibility_state"); LOCATIONS_NOT_SUPPORTED_CHECK(__is_location_supported()); LOCATIONS_NULL_ARG_CHECK(state);