summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseungha.son <seungha.son@samsung.com>2016-08-18 15:29:54 +0900
committerseungha.son <seungha.son@samsung.com>2016-08-18 15:31:15 +0900
commite975516e651c5d7d506c38beec83d60ceec005c0 (patch)
tree81da81e721a3fc6927f1a28be9f94b970c17cef2
parentc86193dc0b1013ed770372e0696207c13de2f326 (diff)
downloadapp-manager-e975516e651c5d7d506c38beec83d60ceec005c0.tar.gz
app-manager-e975516e651c5d7d506c38beec83d60ceec005c0.tar.bz2
app-manager-e975516e651c5d7d506c38beec83d60ceec005c0.zip
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ide6e6aa51f38ebf57c621f900738247a0e575dc9
-rw-r--r--CMakeLists.txt2
-rw-r--r--include/app_context.h2
-rw-r--r--include/app_manager.h2
-rw-r--r--src/app_context.c1
-rw-r--r--src/app_manager.c1
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);