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

Commit f25f1883 authored by Chris Manton's avatar Chris Manton
Browse files

bta: Expose access to test bta_dm_disc_set

Bug: 310009436
Test: m .

Change-Id: I0224842696738e94cad1396b56d340a2c9b2f63e
parent 88a81fe0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2441,6 +2441,15 @@ namespace bluetooth {
namespace legacy {
namespace testing {

tBTA_DM_SEARCH_CB bta_dm_disc_get_search_cb() {
  tBTA_DM_SEARCH_CB search_cb = {};
  ::bta_dm_disc_init_search_cb(search_cb);
  return search_cb;
}
void bta_dm_disc_search_cb(const tBTA_DM_SEARCH_CB& search_cb) {
  ::bta_dm_search_cb = search_cb;
}
const tBTA_DM_SEARCH_CB& bta_dm_disc_search_cb() { return ::bta_dm_search_cb; }
bool bta_dm_read_remote_device_name(const RawAddress& bd_addr,
                                    tBT_TRANSPORT transport) {
  return ::bta_dm_read_remote_device_name(bd_addr, transport);