/**
+ * @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.
*
* @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;;
/**
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
* @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
* @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;
/**
#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
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;
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;
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;