OSDN Git Service

Connect main/shim/acl_legacy_interface::btm_sco_on_disconnected
authorChris Manton <cmanton@google.com>
Sat, 16 Jan 2021 17:33:12 +0000 (09:33 -0800)
committerChris Manton <cmanton@google.com>
Wed, 20 Jan 2021 07:12:58 +0000 (23:12 -0800)
Bug: 177382279
Tag: #refactor
Test: gd/cert/run

Change-Id: Ib1db9bc167cb467daa7468fa0b41ec7e54701b38

main/shim/acl_legacy_interface.cc

index 7fbeb2e..ed0eec0 100644 (file)
 #include "main/shim/acl_legacy_interface.h"
 #include "stack/include/acl_hci_link_interface.h"
 #include "stack/include/ble_acl_interface.h"
+#include "stack/include/sco_hci_link_interface.h"
 #include "stack/include/sec_hci_link_interface.h"
 
+struct tBTM_ESCO_DATA;
+
 namespace bluetooth {
 namespace shim {
 namespace legacy {
@@ -37,7 +40,7 @@ const acl_interface_t GetAclInterface() {
       .connection.le.on_failed = acl_ble_connection_fail,
       .connection.le.on_disconnected = btm_acl_disconnected,
 
-      .connection.sco.on_disconnected = nullptr,
+      .connection.sco.on_disconnected = btm_sco_on_disconnected,
 
       .link.classic.on_authentication_complete = btm_sec_auth_complete,
       .link.classic.on_central_link_key_complete = nullptr,