Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42eba317 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add btm Register_HACK_SetScoDisconnectCallback am: 105dfe64 am: 491fe953

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1553559

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab4a31ba432c69c926709b36cad30fbc6511cda6
parents 5ffb8edf 491fe953
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -678,6 +678,11 @@ void Btm::StoreAddressType(const RawAddress& bd_addr, tBLE_ADDR_TYPE type) {
  store_le_address_type(bd_addr, type);
}

void Btm::Register_HACK_SetScoDisconnectCallback(
    HACK_ScoDisconnectCallback callback) {
  GetAclManager()->HACK_SetScoDisconnectCallback(callback);
}

}  // namespace shim

}  // namespace bluetooth
+5 −0
Original line number Diff line number Diff line
@@ -77,6 +77,8 @@ using DiscoverabilityState = struct {
};
using ConnectabilityState = DiscoverabilityState;

using HACK_ScoDisconnectCallback = std::function<void(uint16_t, uint8_t)>;

namespace bluetooth {
namespace shim {

@@ -205,6 +207,9 @@ class Btm {

  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