From e975516e651c5d7d506c38beec83d60ceec005c0 Mon Sep 17 00:00:00 2001 From: "seungha.son" Date: Thu, 18 Aug 2016 15:29:54 +0900 Subject: [PATCH] Applied API Deprecation Policy Signed-off-by: seungha.son Change-Id: Ide6e6aa51f38ebf57c621f900738247a0e575dc9 --- CMakeLists.txt | 2 +- include/app_context.h | 2 +- include/app_manager.h | 2 +- src/app_context.c | 1 + src/app_manager.c | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6ea2c8..dd5de74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ INCLUDE_DIRECTORIES(${INC_DIR}) ADD_LIBRARY(${PROJECT_NAME} SHARED ${SOURCES}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${PKGS_LDFLAGS}) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -Werror -fvisibility=hidden") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -Werror -fvisibility=hidden -Wno-error=deprecated-declarations") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${FULLVER}) diff --git a/include/app_context.h b/include/app_context.h index 3941f1d..44d004e 100644 --- a/include/app_context.h +++ b/include/app_context.h @@ -92,7 +92,7 @@ int app_context_destroy(app_context_h app_context); * @retval #APP_MANAGER_ERROR_INVALID_PARAMETER Invalid parameter * @retval #APP_MANAGER_ERROR_OUT_OF_MEMORY Out of memory */ -int app_context_get_package(app_context_h app_context, char **package); +int app_context_get_package(app_context_h app_context, char **package) TIZEN_DEPRECATED_API; /** diff --git a/include/app_manager.h b/include/app_manager.h index 9ff520f..1000f49 100644 --- a/include/app_manager.h +++ b/include/app_manager.h @@ -403,7 +403,7 @@ int app_manager_get_shared_trusted_path(const char *app_id, char **path); * @retval #APP_MANAGER_ERROR_NO_SUCH_APP No such application * @retval #APP_MANAGER_ERROR_OUT_OF_MEMORY Out of memory */ -int app_manager_get_external_shared_data_path(const char *app_id, char **path); +int app_manager_get_external_shared_data_path(const char *app_id, char **path) TIZEN_DEPRECATED_API; /** * @brief Creates a app manager event handle. diff --git a/src/app_context.c b/src/app_context.c index b221509..4f1c131 100644 --- a/src/app_context.c +++ b/src/app_context.c @@ -286,6 +286,7 @@ API int app_context_destroy(app_context_h app_context) API int app_context_get_package(app_context_h app_context, char **package) { + dlog_print(DLOG_WARN, LOG_TAG, "DEPRECATION WARNING: app_context_get_package() is deprecated and will be removed from next release. Use app_context_get_app_id() instead."); /* TODO: this function must be deprecated */ return app_context_get_app_id(app_context, package); } diff --git a/src/app_manager.c b/src/app_manager.c index 5839eaa..cf07aad 100644 --- a/src/app_manager.c +++ b/src/app_manager.c @@ -349,6 +349,7 @@ API int app_manager_get_shared_trusted_path(const char *app_id, char **path) API int app_manager_get_external_shared_data_path(const char *app_id, char **path) { + dlog_print(DLOG_WARN, LOG_TAG, "DEPRECATION WARNING: app_manager_get_external_shared_data_path() is deprecated and will be removed from next release."); int r; int retval = aul_get_app_external_shared_data_path_by_appid(app_id, path); -- 2.34.1