Convert the address type to string format 2.0alpha master 2.0_alpha submit/master/20120920.151020
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 11 Sep 2012 07:14:34 +0000 (16:14 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 11 Sep 2012 07:14:34 +0000 (16:14 +0900)
[Commnet] In FRWK send the 8 byte address to event param,
          So we need to this address to string type

Change-Id: I07ec32abd4b8337433ff2c75aa76cfbb5df0a0d9

debian/changelog
packaging/capi-network-bluetooth.spec
src/bluetooth-common.c

index 9931367..7d8ea06 100644 (file)
@@ -1,3 +1,11 @@
+capi-network-bluetooth (0.1.15-1) unstable; urgency=low
+
+  * Tagging and upload the package
+  * Git: slp/api/bluetooth
+  * Tag: capi-network-bluetooth_0.1.15-1
+
+ -- DoHyun Pyun <dh79.pyun@samsung.com>  Tue, 11 Sep 2012 16:08:53 +0900
+
 capi-network-bluetooth (0.1.14-1) unstable; urgency=low
 
   * Tagging and upload the package
index 9ca276d..a41c233 100644 (file)
@@ -1,7 +1,7 @@
 #sbs-git:slp/api/bluetooth capi-network-bluetooth 0.1.0 686c444083e4197845c768e5dd034022b1dfa250
 Name:       capi-network-bluetooth
 Summary:    Network Bluetooth Framework
-Version: 0.1.14
+Version: 0.1.15
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    TO BE FILLED IN
index 3df52a6..c531dd1 100644 (file)
@@ -844,13 +844,15 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
                break;
        case BLUETOOTH_HID_CONNECTED:
                LOGI("[%s] BLUETOOTH_HID_CONNECTED", __FUNCTION__);
-               device_addr = (char *)(param->param_data);
+               bd_addr = (bluetooth_device_address_t *)(param->param_data);
+               _bt_convert_address_to_string(&device_addr, bd_addr);
                ((bt_hid_host_connection_state_changed_cb)bt_event_slot_container[event_index].callback)
                (_bt_get_error_code(param->result), TRUE, device_addr, bt_event_slot_container[event_index].user_data);
                break;
        case BLUETOOTH_HID_DISCONNECTED:
                LOGI("[%s] BLUETOOTH_HID_DISCONNECTED", __FUNCTION__);
-               device_addr = (char *)(param->param_data);
+               bd_addr = (bluetooth_device_address_t *)(param->param_data);
+               _bt_convert_address_to_string(&device_addr, bd_addr);
                ((bt_hid_host_connection_state_changed_cb)bt_event_slot_container[event_index].callback)
                (_bt_get_error_code(param->result), FALSE, device_addr, bt_event_slot_container[event_index].user_data);
                break;