summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyeonghun Lee <kh9090.lee@samsung.com>2016-08-05 13:07:52 +0900
committerKyeonghun Lee <kh9090.lee@samsung.com>2016-08-24 12:51:51 +0900
commitf5810878a2a3b6622501fad4273556c86f5fcb48 (patch)
treeb884212510eeb8a5e2398dffff295d40b73695cd
parent2262fd87ea1a970fc80364b215ff4092caa59759 (diff)
downloadmsg-service-f5810878a2a3b6622501fad4273556c86f5fcb48.tar.gz
msg-service-f5810878a2a3b6622501fad4273556c86f5fcb48.tar.bz2
msg-service-f5810878a2a3b6622501fad4273556c86f5fcb48.zip
deprecate vobject related APIs
Change-Id: I5764f6b376d9d6575aac6d28a7d8170c1fc59c45 Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-xinclude/mapi/msg_storage.h9
-rwxr-xr-xinclude/mapi/msg_types.h8
-rwxr-xr-xmapi/msg_storage.cpp3
3 files changed, 12 insertions, 8 deletions
diff --git a/include/mapi/msg_storage.h b/include/mapi/msg_storage.h
index 52fe33e..feeb2d2 100755
--- a/include/mapi/msg_storage.h
+++ b/include/mapi/msg_storage.h
@@ -423,6 +423,7 @@ int msg_get_conversation(msg_handle_t handle, msg_message_id_t msg_id, msg_struc
/**
+ * @deprecated Deprecated since 3.0. Applications should not use this function.
* @brief Gets the v-object data of message.
* @details This API is used to get the v-object data of message by message ID.
*
@@ -444,7 +445,7 @@ int msg_get_conversation(msg_handle_t handle, msg_message_id_t msg_id, msg_struc
* @retval MSG_ERR_NOT_SUPPORTED Not supported
*/
-int msg_get_vobject_data(msg_handle_t handle, msg_message_id_t msg_id, void** encoded_data);
+int msg_get_vobject_data(msg_handle_t handle, msg_message_id_t msg_id, void** encoded_data) TIZEN_DEPRECATED_API;;
/**
@@ -717,6 +718,7 @@ int msg_reset_database(msg_handle_t handle);
int msg_get_mem_size(msg_handle_t handle, unsigned int* memsize);
/**
+ * @deprecated Deprecated since 3.0. Applications should not use this function.
* @brief Backs up messages to storage.
*
* @since_tizen 2.3
@@ -737,10 +739,11 @@ int msg_get_mem_size(msg_handle_t handle, unsigned int* memsize);
* @retval MSG_ERR_NOT_SUPPORTED Not supported
*/
-int msg_backup_message(msg_handle_t handle, msg_message_backup_type_t type, const char *backup_filepath);
+int msg_backup_message(msg_handle_t handle, msg_message_backup_type_t type, const char *backup_filepath) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 3.0. Applications should not use this function.
* @brief Restores messages from backed up messages.
*
* @since_tizen 2.3
@@ -760,7 +763,7 @@ int msg_backup_message(msg_handle_t handle, msg_message_backup_type_t type, cons
* @retval MSG_ERR_NOT_SUPPORTED Not supported
*/
-int msg_restore_message(msg_handle_t handle, const char *backup_filepath);
+int msg_restore_message(msg_handle_t handle, const char *backup_filepath) TIZEN_DEPRECATED_API;
/**
diff --git a/include/mapi/msg_types.h b/include/mapi/msg_types.h
index 289645d..94a639c 100755
--- a/include/mapi/msg_types.h
+++ b/include/mapi/msg_types.h
@@ -17,15 +17,13 @@
#ifndef MSG_TYPES_H_
#define MSG_TYPES_H_
+#include <tizen.h>
+
/*==================================================================================================
DEFINES
==================================================================================================*/
-#define DEPRECATED __attribute__((deprecated))
-
-#ifndef EXPORT_API
-#define EXPORT_API __attribute__ ((visibility("default")))
-#endif
+#define DEPRECATED_STRING_FORMAT "DEPRECATION WARNING: %s() is deprecated and will be removed from next release."
/**
* @addtogroup MSG_SERVICE_FRAMEWORK
diff --git a/mapi/msg_storage.cpp b/mapi/msg_storage.cpp
index 1fe7b36..5c509e4 100755
--- a/mapi/msg_storage.cpp
+++ b/mapi/msg_storage.cpp
@@ -395,6 +395,7 @@ EXPORT_API int msg_get_message(msg_handle_t handle, msg_message_id_t msg_id, msg
EXPORT_API int msg_get_vobject_data(msg_handle_t handle, msg_message_id_t msg_id, void** result_data)
{
+ MSG_WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE);
msg_error_t err = MSG_SUCCESS;
@@ -798,6 +799,7 @@ EXPORT_API int msg_get_mem_size(msg_handle_t handle, unsigned int* memsize)
EXPORT_API int msg_backup_message(msg_handle_t handle, msg_message_backup_type_t type, const char *backup_filepath)
{
+ MSG_WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE);
msg_error_t err = MSG_SUCCESS;
@@ -819,6 +821,7 @@ EXPORT_API int msg_backup_message(msg_handle_t handle, msg_message_backup_type_t
EXPORT_API int msg_restore_message(msg_handle_t handle, const char *backup_filepath)
{
+ MSG_WARN(DEPRECATED_STRING_FORMAT, __FUNCTION__);
CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE);
msg_error_t err = MSG_SUCCESS;