* @brief Gets message.
* @since_tizen 3.0
* @param[in] handle Session handle
- * @param[in] message_object_name Object name of the message
+ * @param[in] message_object Message object handle
* @param[in] target_file Target file path
* @param[in] attachment With attachment?
* @param[in] callback Callback function
*/
int bt_map_client_get_message(
bt_map_client_session_info_h handle,
- const char* message_object_name,
+ const bt_map_client_message_object_h message_object,
const char* target_file,
bool attachment,
bt_map_client_get_message_cb callback,
*/
typedef void* bt_map_client_session_info_h;
+typedef void* bt_map_client_message_object_h;
+
typedef struct {
int16_t offset;
int16_t max_count;
} bt_map_client_list_messages_filter_s;
typedef struct {
- char *message_object_name;
+ bt_map_client_message_object_h message_object;
char *folder;
char *subject;
char *timestamp;
* @brief Gets message.
* @since_tizen 3.0
* @param[in] handle Session handle
- * @param[in] message_object_name Object name of the message
+ * @param[in] message_object Message object handle
* @param[in] target_file Target file path
* @param[in] attachment With attachment?
* @param[in] callback Callback function
*/
int bt_map_client_get_message(
bt_map_client_session_info_h handle,
- const char* message_object_name,
+ const bt_map_client_message_object_h message_object,
const char* target_file,
bool attachment,
bt_map_client_get_message_cb callback,
*/
typedef void* bt_map_client_session_info_h;
+typedef void* bt_map_client_message_object_h;
+
typedef struct {
int16_t offset;
int16_t max_count;
} bt_map_client_list_messages_filter_s;
typedef struct {
- char *message_object_name;
+ bt_map_client_message_object_h message_object;
char *folder;
char *subject;
char *timestamp;
int bt_map_client_get_message(
bt_map_client_session_info_h handle,
- const char* message_object_name,
+ const bt_map_client_message_object_h message_object,
const char* target_file,
bool attachment,
bt_map_client_get_message_cb callback,
BT_CHECK_INIT_STATUS();
BT_CHECK_MAP_CLIENT_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(handle);
- BT_CHECK_INPUT_PARAMETER(message_object_name);
+ BT_CHECK_INPUT_PARAMETER(message_object);
BT_CHECK_INPUT_PARAMETER(target_file);
bt_map_client_session_info_s* session = (bt_map_client_session_info_s*) handle;
data->user_data = user_data;
int error_code = _bt_get_error_code(bluetooth_map_client_get_message(session,
- message_object_name, target_file, attachment));
+ message_object, target_file, attachment));
if (error_code != BT_ERROR_NONE) {
BT_ERR("bt_map_client_get_message %s(0x%08x)", _bt_convert_error_to_string(error_code),
error_code);