summaryrefslogtreecommitdiff
path: root/src/bluetooth-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth-common.c')
-rw-r--r--src/bluetooth-common.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c
index b1ca464..b149d1d 100644
--- a/src/bluetooth-common.c
+++ b/src/bluetooth-common.c
@@ -2065,6 +2065,10 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
if (cb)
cb(_bt_get_error_code(param->result), TRUE, device_addr,
bt_event_slot_container[event_index].user_data);
+
+ /*HRP Server*/
+ __bt_hrp_le_connection_state_changed_cb(param->result, device_addr, TRUE);
+
g_free(device_addr);
device_addr = NULL;
break;
@@ -2079,6 +2083,10 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
if (cb)
cb(_bt_get_error_code(param->result), FALSE, device_addr,
bt_event_slot_container[event_index].user_data);
+
+ /*HRP Server*/
+ __bt_hrp_le_connection_state_changed_cb(param->result, device_addr, FALSE);
+
g_free(device_addr);
device_addr = NULL;
break;
@@ -2169,6 +2177,9 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
/* OTP Client */
_bt_otp_client_connection_state_changed(param->result, device_addr, TRUE);
+ /*HRP Client*/
+ __bt_hrp_le_connection_state_changed_cb(param->result, device_addr, TRUE);
+
if (device_addr != NULL)
free(device_addr);
device_addr = NULL;
@@ -2200,6 +2211,9 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us
/* OTP Client */
_bt_otp_client_connection_state_changed(param->result, device_addr, FALSE);
+ /*HRP Client*/
+ __bt_hrp_le_connection_state_changed_cb(param->result, device_addr, FALSE);
+
if (device_addr != NULL)
free(device_addr);
device_addr = NULL;