From: Piotr Dabrowski
Date: Fri, 11 Nov 2016 10:26:31 +0000 (+0100)
Subject: [bluetooth] bt_map_client_message_object_h
X-Git-Tag: submit/tizen_3.0/20161208.051813~6
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b57a8b1e9ec99d91e92edc32446a453fc3224f9b;p=platform%2Fcore%2Fapi%2Fbluetooth.git
[bluetooth] bt_map_client_message_object_h
Change-Id: I18eb6793060e8a69372dd2233d9b7280d7c6f623
---
diff --git a/include/mobile/bluetooth_internal.h b/include/mobile/bluetooth_internal.h
index 1fcfa12..9174bd9 100644
--- a/include/mobile/bluetooth_internal.h
+++ b/include/mobile/bluetooth_internal.h
@@ -1715,7 +1715,7 @@ int bt_map_client_push_message(
* @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
@@ -1727,7 +1727,7 @@ int bt_map_client_push_message(
*/
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,
diff --git a/include/mobile/bluetooth_type_internal.h b/include/mobile/bluetooth_type_internal.h
index 988cb14..3950efa 100644
--- a/include/mobile/bluetooth_type_internal.h
+++ b/include/mobile/bluetooth_type_internal.h
@@ -100,6 +100,8 @@ typedef enum {
*/
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;
@@ -120,7 +122,7 @@ typedef struct {
} 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;
diff --git a/include/wearable/bluetooth_internal.h b/include/wearable/bluetooth_internal.h
index 86fc915..2b6d057 100644
--- a/include/wearable/bluetooth_internal.h
+++ b/include/wearable/bluetooth_internal.h
@@ -1685,7 +1685,7 @@ int bt_map_client_push_message(
* @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
@@ -1697,7 +1697,7 @@ int bt_map_client_push_message(
*/
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,
diff --git a/include/wearable/bluetooth_type_internal.h b/include/wearable/bluetooth_type_internal.h
index ae9db61..1fb8374 100644
--- a/include/wearable/bluetooth_type_internal.h
+++ b/include/wearable/bluetooth_type_internal.h
@@ -102,6 +102,8 @@ typedef enum {
*/
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;
@@ -122,7 +124,7 @@ typedef struct {
} 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;
diff --git a/src/bluetooth-map-client.c b/src/bluetooth-map-client.c
index 1d31b9c..0e6518e 100644
--- a/src/bluetooth-map-client.c
+++ b/src/bluetooth-map-client.c
@@ -299,7 +299,7 @@ int bt_map_client_push_message(
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,
@@ -310,7 +310,7 @@ int bt_map_client_get_message(
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;
@@ -320,7 +320,7 @@ int bt_map_client_get_message(
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);