[bluetooth] bt_map_client_message_object_h 66/102866/2
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Fri, 11 Nov 2016 10:26:31 +0000 (11:26 +0100)
committerPyun DoHyun <dh79.pyun@samsung.com>
Thu, 8 Dec 2016 00:17:02 +0000 (16:17 -0800)
Change-Id: I18eb6793060e8a69372dd2233d9b7280d7c6f623

include/mobile/bluetooth_internal.h
include/mobile/bluetooth_type_internal.h
include/wearable/bluetooth_internal.h
include/wearable/bluetooth_type_internal.h
src/bluetooth-map-client.c

index 1fcfa126455fe3b5fb4be0758c2aae5e8d6ecc65..9174bd988264d03bad7d2d8ab8b990d9c7a490d6 100644 (file)
@@ -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,
index 988cb148cbccba5a63256e5fbda224e1b2d6354a..3950efa644255a6d295b3df73eb67c17afeeb4c7 100644 (file)
@@ -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;
index 86fc915cb039792cf1743b50c28846153dfd5f3f..2b6d057a2afee88b6c7d0eeafe52becaced569f2 100644 (file)
@@ -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,
index ae9db61ac72213111e5c9776d358f3bb4aa5192e..1fb837407d69e04e423386c32dfaa9739feedc04 100644 (file)
@@ -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;
index 1d31b9c1aae1a0342fd5afc4852a4c67df406409..0e6518e92f45728a850130533ca6c2b61fc312d2 100644 (file)
@@ -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);