From a86a28650ae0b74c4b50a7f5aefeff5fba398a58 Mon Sep 17 00:00:00 2001 From: "seungha.son" Date: Thu, 18 Aug 2016 16:13:29 +0900 Subject: [PATCH] Applied API Deprecation Policy Signed-off-by: seungha.son Change-Id: If1b2dcd55fab49cac13a0835d8ac32bde27622b0 --- alarm/CMakeLists.txt | 2 +- alarm/alarm.c | 1 + app_common/CMakeLists.txt | 2 +- app_common/app_path.c | 8 ++++++++ include/app_alarm.h | 2 +- include/app_common.h | 2 +- 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/alarm/CMakeLists.txt b/alarm/CMakeLists.txt index f989184..50dafd9 100644 --- a/alarm/CMakeLists.txt +++ b/alarm/CMakeLists.txt @@ -18,7 +18,7 @@ FOREACH(flag ${${fw_name}_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") ENDFOREACH(flag) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") IF("${ARCH}" STREQUAL "arm") diff --git a/alarm/alarm.c b/alarm/alarm.c index b8d21ed..743d4f6 100644 --- a/alarm/alarm.c +++ b/alarm/alarm.c @@ -181,6 +181,7 @@ int alarm_schedule_after_delay(app_control_h app_control, int delay, int period, int alarm_schedule_at_date(app_control_h app_control, struct tm *date, int period_in_second, int *alarm_id) { + dlog_print(DLOG_WARN, LOG_TAG, "DEPRECATION WARNING: alarm_schedule_at_date() is deprecated and will be removed from next release. Use alarm_schedule_once_at_date() instead."); alarm_date_t internal_time; alarm_entry_t *alarm_info; bundle *bundle_data; diff --git a/app_common/CMakeLists.txt b/app_common/CMakeLists.txt index e731efa..2aaf28c 100644 --- a/app_common/CMakeLists.txt +++ b/app_common/CMakeLists.txt @@ -19,7 +19,7 @@ FOREACH(flag ${${fw_name}_CFLAGS}) ENDFOREACH(flag) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC ") -SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -Werror") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall -Werror -Wno-error=deprecated-declarations") IF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DTARGET") diff --git a/app_common/app_path.c b/app_common/app_path.c index 39f640d..5282936 100644 --- a/app_common/app_path.c +++ b/app_common/app_path.c @@ -17,9 +17,16 @@ #include #include #include +#include #include "app_types.h" +#ifdef LOG_TAG +#undef LOG_TAG +#endif + +#define LOG_TAG "CAPI_APPFW_APPLICATION" + #define _STRDUP(s) ((s) ? strdup(s) : NULL) char *app_get_data_path(void) @@ -82,6 +89,7 @@ char *app_get_external_cache_path(void) char *app_get_external_shared_data_path(void) { + dlog_print(DLOG_WARN, LOG_TAG, "DEPRECATION WARNING: app_get_external_shared_data_path() is deprecated and will be removed from next release."); const char *buf = aul_get_app_external_shared_data_path(); return _STRDUP(buf); } diff --git a/include/app_alarm.h b/include/app_alarm.h index c274cfe..15796ab 100644 --- a/include/app_alarm.h +++ b/include/app_alarm.h @@ -150,7 +150,7 @@ int alarm_schedule_after_delay(app_control_h app_control, int delay, int period, * @see alarm_get_scheduled_date() * @see alarm_get_scheduled_period() */ -int alarm_schedule_at_date(app_control_h app_control, struct tm *date, int period, int *alarm_id); +int alarm_schedule_at_date(app_control_h app_control, struct tm *date, int period, int *alarm_id) TIZEN_DEPRECATED_API; /** * @brief Sets an alarm to be triggered after a specific time. diff --git a/include/app_common.h b/include/app_common.h index 2d9dce0..9485029 100644 --- a/include/app_common.h +++ b/include/app_common.h @@ -452,7 +452,7 @@ char *app_get_external_cache_path(void); * @return The absolute path to the application's external shared data directory, @n * otherwise a null pointer if the memory is insufficient */ -char *app_get_external_shared_data_path(void); +char *app_get_external_shared_data_path(void) TIZEN_DEPRECATED_API; /** * @brief Gets the absolute path to the application's TEP(Tizen Expansion Package) directory. -- 2.7.4