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

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

Add layer of indirection to set hal_callbacks am: f93fece9 am: 6ecaf5ae

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

Change-Id: If4dea361ce1418ea88536007441f39d295df7deb
parents 78ac17c4 6ecaf5ae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ extern VolumeControlInterface* btif_volume_control_get_interface();
 ******************************************************************************/

static bool interface_ready(void) { return bt_hal_cbacks != NULL; }
void set_hal_cbacks(bt_callbacks_t* callbacks) { bt_hal_cbacks = callbacks; }

static bool is_profile(const char* p1, const char* p2) {
  CHECK(p1);
@@ -167,7 +168,8 @@ static int init(bt_callbacks_t* callbacks, bool start_restricted,
  allocation_tracker_init();
#endif

  bt_hal_cbacks = callbacks;
  set_hal_cbacks(callbacks);

  restricted_mode = start_restricted;
  common_criteria_mode = is_common_criteria_mode;
  common_criteria_config_compare_result = config_compare_result;