Loading system/bta/gatt/bta_gatts_act.cc +2 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,8 @@ void bta_gatts_enable(tBTA_GATTS_CB* p_cb) { p_cb->enabled = true; gatt_load_bonded(); if (!GATTS_NVRegister(&bta_gatts_nv_cback)) { LOG(ERROR) << "BTA GATTS NV register failed."; } Loading system/bta/gatt/bta_gatts_api.cc +8 −0 Original line number Diff line number Diff line Loading @@ -368,3 +368,11 @@ void BTA_GATTS_Close(uint16_t conn_id) { bta_sys_sendmsg(p_buf); } void BTA_GATTS_InitBonded(void) { LOG(INFO) << __func__; BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); p_buf->event = BTA_GATTS_API_INIT_BONDED_EVT; bta_sys_sendmsg(p_buf); } system/bta/gatt/bta_gatts_int.h +3 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,9 @@ enum { BTA_GATTS_API_OPEN_EVT, BTA_GATTS_API_CANCEL_OPEN_EVT, BTA_GATTS_API_CLOSE_EVT, BTA_GATTS_API_DISABLE_EVT BTA_GATTS_API_DISABLE_EVT, BTA_GATTS_API_INIT_BONDED_EVT, }; typedef uint16_t tBTA_GATTS_INT_EVT; Loading system/bta/gatt/bta_gatts_main.cc +4 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,10 @@ bool bta_gatts_hdl_event(BT_HDR_RIGID* p_msg) { break; } case BTA_GATTS_API_INIT_BONDED_EVT: gatt_load_bonded(); break; default: break; } Loading system/bta/include/bta_gatt_api.h +3 −0 Original line number Diff line number Diff line Loading @@ -1024,4 +1024,7 @@ extern void BTA_GATTS_CancelOpen(tGATT_IF server_if, ******************************************************************************/ extern void BTA_GATTS_Close(uint16_t conn_id); // Adds bonded device for GATT server tracking service changes extern void BTA_GATTS_InitBonded(void); #endif /* BTA_GATT_API_H */ Loading
system/bta/gatt/bta_gatts_act.cc +2 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,8 @@ void bta_gatts_enable(tBTA_GATTS_CB* p_cb) { p_cb->enabled = true; gatt_load_bonded(); if (!GATTS_NVRegister(&bta_gatts_nv_cback)) { LOG(ERROR) << "BTA GATTS NV register failed."; } Loading
system/bta/gatt/bta_gatts_api.cc +8 −0 Original line number Diff line number Diff line Loading @@ -368,3 +368,11 @@ void BTA_GATTS_Close(uint16_t conn_id) { bta_sys_sendmsg(p_buf); } void BTA_GATTS_InitBonded(void) { LOG(INFO) << __func__; BT_HDR_RIGID* p_buf = (BT_HDR_RIGID*)osi_malloc(sizeof(BT_HDR_RIGID)); p_buf->event = BTA_GATTS_API_INIT_BONDED_EVT; bta_sys_sendmsg(p_buf); }
system/bta/gatt/bta_gatts_int.h +3 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,9 @@ enum { BTA_GATTS_API_OPEN_EVT, BTA_GATTS_API_CANCEL_OPEN_EVT, BTA_GATTS_API_CLOSE_EVT, BTA_GATTS_API_DISABLE_EVT BTA_GATTS_API_DISABLE_EVT, BTA_GATTS_API_INIT_BONDED_EVT, }; typedef uint16_t tBTA_GATTS_INT_EVT; Loading
system/bta/gatt/bta_gatts_main.cc +4 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,10 @@ bool bta_gatts_hdl_event(BT_HDR_RIGID* p_msg) { break; } case BTA_GATTS_API_INIT_BONDED_EVT: gatt_load_bonded(); break; default: break; } Loading
system/bta/include/bta_gatt_api.h +3 −0 Original line number Diff line number Diff line Loading @@ -1024,4 +1024,7 @@ extern void BTA_GATTS_CancelOpen(tGATT_IF server_if, ******************************************************************************/ extern void BTA_GATTS_Close(uint16_t conn_id); // Adds bonded device for GATT server tracking service changes extern void BTA_GATTS_InitBonded(void); #endif /* BTA_GATT_API_H */