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

Commit 56824cd6 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Move role switch api header inclusion location am: ba7bf3af am: 4c7a152d

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

Change-Id: Ia6e39c92a9e787978739a32ec64b289b747c061a
parents 343422bf 4c7a152d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -108,8 +108,6 @@ extern void btm_read_link_quality_complete(uint8_t* p);
extern tBTM_STATUS btm_set_packet_types(tACL_CONN* p, uint16_t pkt_types);
extern void btm_process_clk_off_comp_evt(uint16_t hci_handle,
                                         uint16_t clock_offset);
extern void btm_acl_role_changed(uint8_t hci_status, const RawAddress* bd_addr,
                                 uint8_t new_role);
extern void btm_blacklist_role_change_device(const RawAddress& bd_addr,
                                             uint8_t hci_status);
extern void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
#include "hcimsgs.h"
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "stack/include/acl_api.h"
#include "stack/include/l2cap_hci_link_interface.h"

using base::Location;
+15 −0
Original line number Diff line number Diff line
@@ -229,3 +229,18 @@ tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda,
 *
 ******************************************************************************/
uint16_t BTM_GetNumAclLinks(void);

/*******************************************************************************
 *
 * Function         btm_acl_role_changed
 *
 * Description      This function is called whan a link's master/slave role
 *                  change event or command status event (with error) is
 *                  received. It updates the link control block, and calls the
 *                  registered callback with status and role (if registered).
 *
 * Returns          void
 *
 ******************************************************************************/
void btm_acl_role_changed(uint8_t hci_status, const RawAddress* bd_addr,
                          uint8_t new_role);