Remove wrong dependency in the systemd service file
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-oob.c
old mode 100644 (file)
new mode 100755 (executable)
index 9f618c7..3a8788f
@@ -1,11 +1,5 @@
 /*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
- *              Girishashok Joshi <girish.joshi@samsung.com>
- *              Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -41,10 +35,8 @@ BT_EXPORT_API int bluetooth_oob_read_local_data(bt_oob_data_t *local_oob_data)
        result = _bt_send_request(BT_BLUEZ_SERVICE, BT_OOB_READ_LOCAL_DATA,
                in_param1, in_param2, in_param3, in_param4, &out_param);
 
-       if (result == BLUETOOTH_ERROR_NONE) {
-               *local_oob_data = g_array_index(out_param,
-                       bt_oob_data_t, 0);
-       }
+       if (result == BLUETOOTH_ERROR_NONE)
+               *local_oob_data = g_array_index(out_param, bt_oob_data_t, 0);
 
        BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param);
 
@@ -53,6 +45,7 @@ BT_EXPORT_API int bluetooth_oob_read_local_data(bt_oob_data_t *local_oob_data)
 
 BT_EXPORT_API int bluetooth_oob_add_remote_data(
                        const bluetooth_device_address_t *remote_device_address,
+                       bluetooth_bdaddr_type_e address_type,
                        bt_oob_data_t *remote_oob_data)
 {
        int result;
@@ -67,7 +60,9 @@ BT_EXPORT_API int bluetooth_oob_add_remote_data(
        g_array_append_vals(in_param1, remote_device_address,
                                sizeof(bluetooth_device_address_t));
 
-       g_array_append_vals(in_param2, remote_oob_data, sizeof(bt_oob_data_t));
+       g_array_append_vals(in_param2, &address_type, sizeof(unsigned short));
+
+       g_array_append_vals(in_param3, remote_oob_data, sizeof(bt_oob_data_t));
 
        result = _bt_send_request(BT_BLUEZ_SERVICE, BT_OOB_ADD_REMOTE_DATA,
                in_param1, in_param2, in_param3, in_param4, &out_param);