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

Commit 88c9eb13 authored by Chris Manton's avatar Chris Manton
Browse files

Add accessors for tBTM_CB::tBTM_BLE_CB::wl_state

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I7b8210fd8577dfbc361ea4baf975b891605039ca
parent 85e2fba1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -261,6 +261,9 @@ typedef struct {

  /* white list information */
  uint8_t wl_state;
  void set_whitelist_process_in_progress() { wl_state |= BTM_BLE_WL_INIT; }
  void reset_whitelist_process_in_progress() { wl_state &= ~BTM_BLE_WL_INIT; }
  bool is_whitelist_in_progress() const { return wl_state & BTM_BLE_WL_INIT; }

 private:
  enum : uint8_t { /* BLE connection state */