From a4f1ae5bf01e872b2e885fde85cf9d5dc255a008 Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Wed, 31 Aug 2016 14:25:29 +0900 Subject: [PATCH] API deprecation warning message Signed-off-by: kj7.sung Change-Id: I60c9fe4e55ca913af16bb3cbc13324190e46ae75 --- CMakeLists.txt | 1 + include/locations.h | 3 ++- packaging/capi-location-manager.changes | 6 ++++++ packaging/capi-location-manager.spec | 2 +- src/locations.c | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) 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); -- 2.7.4