Towards meaningful code
Bug:
177382279
Tag: #refactor
Test: gd/cert/run
Change-Id: Idd77f86c803825faf5233e768a68c72baee8cdff
store_le_address_type(bd_addr, type);
}
+void Btm::Register_HACK_SetScoDisconnectCallback(
+ HACK_ScoDisconnectCallback callback) {
+ GetAclManager()->HACK_SetScoDisconnectCallback(callback);
+}
+
} // namespace shim
} // namespace bluetooth
};
using ConnectabilityState = DiscoverabilityState;
+using HACK_ScoDisconnectCallback = std::function<void(uint16_t, uint8_t)>;
+
namespace bluetooth {
namespace shim {
uint16_t GetAclHandle(const RawAddress& remote_bda, tBT_TRANSPORT transport);
+ void Register_HACK_SetScoDisconnectCallback(
+ HACK_ScoDisconnectCallback callback);
+
static tBLE_ADDR_TYPE GetAddressType(const RawAddress& bd_addr);
// Store the address type from advertising report or connection complete