summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseungha.son <seungha.son@samsung.com>2016-08-18 16:13:29 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2016-08-18 22:14:59 -0700
commita86a28650ae0b74c4b50a7f5aefeff5fba398a58 (patch)
tree6780437c5fcdf0c324be3bd5a7d001f90c479133
parent2a509b25a7d7db2c6a3235e8514172875eaeadb2 (diff)
downloadapplication-a86a28650ae0b74c4b50a7f5aefeff5fba398a58.tar.gz
application-a86a28650ae0b74c4b50a7f5aefeff5fba398a58.tar.bz2
application-a86a28650ae0b74c4b50a7f5aefeff5fba398a58.zip
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: If1b2dcd55fab49cac13a0835d8ac32bde27622b0
-rw-r--r--alarm/CMakeLists.txt2
-rw-r--r--alarm/alarm.c1
-rw-r--r--app_common/CMakeLists.txt2
-rw-r--r--app_common/app_path.c8
-rw-r--r--include/app_alarm.h2
-rw-r--r--include/app_common.h2
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 <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);
}
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.