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

Commit 965ef9cb authored by Chris Manton's avatar Chris Manton
Browse files

Declare explicitly global tBTM_CB

Towards modular code

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

Change-Id: Ia9f3f8208e4fd439196137e023e176ca95f645b4
parent a3e16c7c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
#include "stack/include/hcidefs.h"
#include "stack/include/l2cap_hci_link_interface.h"

extern tBTM_CB btm_cb;

void btm_ble_advertiser_notify_terminated_legacy(uint8_t status,
                                                 uint16_t connection_handle);
void btm_ble_increment_link_topology_mask(uint8_t link_role);
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@
#include "stack/include/hcimsgs.h"
#include "stack/include/l2cap_hci_link_interface.h"

extern tBTM_CB btm_cb;

extern void btm_ble_advertiser_notify_terminated_legacy(
    uint8_t status, uint16_t connection_handle);

+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@
#include "stack/crypto_toolbox/crypto_toolbox.h"
#include "stack/include/acl_api.h"

extern tBTM_CB btm_cb;

void btm_ble_set_random_address(const RawAddress& random_bda);

/* This function generates Resolvable Private Address (RPA) from Identity
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@
#include <base/bind.h>
#include <base/bind_helpers.h>

extern tBTM_CB btm_cb;

using base::Bind;
using bluetooth::Uuid;

+3 −0
Original line number Diff line number Diff line
@@ -28,8 +28,11 @@
#include "btu.h"
#include "device/include/controller.h"
#include "hcimsgs.h"
#include "stack/btm/btm_int_types.h"
#include "utils/include/bt_utils.h"

extern tBTM_CB btm_cb;

using base::Bind;
using base::Callback;
using hci_cmd_cb = base::Callback<void(uint8_t* /* return_parameters */,
Loading