Applied API Deprecation Policy 53/84353/2 accepted/tizen/common/20160822.132758 accepted/tizen/common/20160823.132630 accepted/tizen/ivi/20160824.021622 accepted/tizen/mobile/20160824.021456 accepted/tizen/tv/20160824.021539 accepted/tizen/wearable/20160824.021646 submit/tizen/20160822.060035 submit/tizen/20160822.060113
authorseungha.son <seungha.son@samsung.com>
Thu, 18 Aug 2016 07:13:29 +0000 (16:13 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 19 Aug 2016 05:14:59 +0000 (22:14 -0700)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: If1b2dcd55fab49cac13a0835d8ac32bde27622b0

alarm/CMakeLists.txt
alarm/alarm.c
app_common/CMakeLists.txt
app_common/app_path.c
include/app_alarm.h
include/app_common.h

index f989184..50dafd9 100644 (file)
@@ -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")
index b8d21ed..743d4f6 100644 (file)
@@ -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;
index e731efa..2aaf28c 100644 (file)
@@ -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")
index 39f640d..5282936 100644 (file)
 #include <string.h>
 #include <aul.h>
 #include <tizen_error.h>
+#include <dlog.h>
 
 #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);
 }
index c274cfe..15796ab 100644 (file)
@@ -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.
index 2d9dce0..9485029 100644 (file)
@@ -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.