diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2012-09-11 16:14:34 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2012-09-11 16:14:34 +0900 |
commit | f9da34d8d37d591db18bd6a19f0fe029cef35965 (patch) | |
tree | af6186244d56ac468f6c62ad978882f63f30dba6 /src | |
parent | 14e024e595e4bc56c43eb5a27933e45ce1e12067 (diff) | |
download | bluetooth-f9da34d8d37d591db18bd6a19f0fe029cef35965.tar.gz bluetooth-f9da34d8d37d591db18bd6a19f0fe029cef35965.tar.bz2 bluetooth-f9da34d8d37d591db18bd6a19f0fe029cef35965.zip |
Convert the address type to string formatHEADsubmit/master/20120920.1510202.0_alphamaster2.0alpha
[Commnet] In FRWK send the 8 byte address to event param,
So we need to this address to string type
Change-Id: I07ec32abd4b8337433ff2c75aa76cfbb5df0a0d9
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 3df52a6..c531dd1 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -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; |