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

Commit 721605d2 authored by Chris Manton's avatar Chris Manton
Browse files

Use get_btm_client_interface().lifecycle.BTM_GetHCIConnHandle

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I6b694e5e29e53857498c765b777720c0a73fce0b
parent 60dc97e2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@
#include "osi/include/osi.h"
#include "osi/include/properties.h"
#include "stack/include/acl_api.h"
#include "stack/include/btm_client_interface.h"
#include "utl.h"

/*****************************************************************************
@@ -3170,7 +3171,8 @@ static void bta_av_offload_codec_builder(tBTA_AV_SCB* p_scb,
  p_a2dp_offload->max_latency = 0;
  p_a2dp_offload->mtu = mtu;
  p_a2dp_offload->acl_hdl =
      BTM_GetHCIConnHandle(p_scb->PeerAddress(), BT_TRANSPORT_BR_EDR);
      get_btm_client_interface().lifecycle.BTM_GetHCIConnHandle(
          p_scb->PeerAddress(), BT_TRANSPORT_BR_EDR);
  btav_a2dp_scmst_info_t scmst_info =
      p_scb->p_cos->get_scmst_info(p_scb->PeerAddress());
  p_a2dp_offload->scms_t_enable[0] = scmst_info.enable_status;
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@
#include "osi/include/fixed_queue.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "stack/include/acl_client_callbacks.h"
#include "stack/include/btm_client_interface.h"
#include "utl.h"

void BTIF_dm_on_hw_error();
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include "btm_int.h"
#include "main/shim/dumpsys.h"
#include "stack/btm/btm_int_types.h"
#include "stack/include/btm_client_interface.h"
#include "stack_config.h"

/* Global BTM control block structure