Applied API Deprecation Policy 38/84338/1 accepted/tizen/common/20160822.132801 accepted/tizen/common/20160823.132642 accepted/tizen/ivi/20160824.021625 accepted/tizen/mobile/20160824.021508 accepted/tizen/tv/20160824.021542 accepted/tizen/wearable/20160824.021649 submit/tizen/20160822.060035 submit/tizen/20160822.060113
authorseungha.son <seungha.son@samsung.com>
Thu, 18 Aug 2016 06:29:54 +0000 (15:29 +0900)
committerseungha.son <seungha.son@samsung.com>
Thu, 18 Aug 2016 06:31:15 +0000 (15:31 +0900)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: Ide6e6aa51f38ebf57c621f900738247a0e575dc9

CMakeLists.txt
include/app_context.h
include/app_manager.h
src/app_context.c
src/app_manager.c

index f6ea2c8..dd5de74 100644 (file)
@@ -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})
index 3941f1d..44d004e 100644 (file)
@@ -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;
 
 
 /**
index 9ff520f..1000f49 100644 (file)
@@ -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.
index b221509..4f1c131 100644 (file)
@@ -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);
 }
index 5839eaa..cf07aad 100644 (file)
@@ -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);