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

Commit 05dfb832 authored by Chris Manton's avatar Chris Manton
Browse files

Add btm_ble_[increment|decrement]_link_topology_mask

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: act.py -tc BleCocTest

Change-Id: I2528e8f0e87a40a07a379a28a9069589e2aa93eb
parent ec172912
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -2309,6 +2309,14 @@ void btm_ble_update_link_topology_mask(uint8_t link_role, bool increase) {
  }
  }
}
}


void btm_ble_increment_link_topology_mask(uint8_t link_role) {
  btm_ble_update_link_topology_mask(link_role, true);
}

void btm_ble_decrement_link_topology_mask(uint8_t link_role) {
  btm_ble_update_link_topology_mask(link_role, false);
}

/*******************************************************************************
/*******************************************************************************
 *
 *
 * Function         btm_ble_update_mode_operation
 * Function         btm_ble_update_mode_operation
+1 −0
Original line number Original line Diff line number Diff line
@@ -41,6 +41,7 @@


using base::StringPrintf;
using base::StringPrintf;


void btm_ble_increment_link_topology_mask(uint8_t link_role);
tL2CAP_LE_RESULT_CODE btm_ble_start_sec_check(const RawAddress& bd_addr,
tL2CAP_LE_RESULT_CODE btm_ble_start_sec_check(const RawAddress& bd_addr,
                                              uint16_t psm, bool is_originator,
                                              uint16_t psm, bool is_originator,
                                              tBTM_SEC_CALLBACK* p_callback,
                                              tBTM_SEC_CALLBACK* p_callback,
+1 −0
Original line number Original line Diff line number Diff line
@@ -37,6 +37,7 @@
#include "types/raw_address.h"
#include "types/raw_address.h"


void btm_sco_acl_removed(const RawAddress* bda);
void btm_sco_acl_removed(const RawAddress* bda);
void btm_ble_decrement_link_topology_mask(uint8_t link_role);


static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf,
static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf,
                                   tL2C_TX_COMPLETE_CB_INFO* p_cbi);
                                   tL2C_TX_COMPLETE_CB_INFO* p_cbi);