Applied API Deprecation Policy
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 f989184ad24a8aca464f4a8edc40d094ff947f36..50dafd9227fb9d0940476f6a52bc725a06ea54d3 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 b8d21ed4d7e48d2ee9c2bb37697a8a3542ad0f2f..743d4f66888dbc63c23655374b177f6ef8bdfff6 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 e731efa1cadbd3191fe767d687288367bccf7bba..2aaf28c16f843799c520021ab240d2fb1824c426 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 39f640d1f7edaa643e30ddd4e1d8a4dbd5feb03b..52829361ab8132b6aba9f1f2be788d730dc144f8 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 c274cfea4204ff744396d25e6871edf4efe44647..15796ab3dda189d0f570b810d0d7e859c2c1d944 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 2d9dce0c1dd724fc994c23fc4aa08f0a91402a03..948502921515f8b983f1ab235be61969879dcba7 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.