deprecate vobject related APIs 64/82664/5
authorKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 5 Aug 2016 04:07:52 +0000 (13:07 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Wed, 24 Aug 2016 03:51:51 +0000 (12:51 +0900)
Change-Id: I5764f6b376d9d6575aac6d28a7d8170c1fc59c45
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
include/mapi/msg_storage.h
include/mapi/msg_types.h
mapi/msg_storage.cpp

index 52fe33e..feeb2d2 100755 (executable)
@@ -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;
 
 
 /**
index 289645d..94a639c 100755 (executable)
 #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
index 1fe7b36..5c509e4 100755 (executable)
@@ -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;