From 962988c255954845911aae9e40ad098283870839 Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Tue, 8 Sep 2020 08:28:17 -0700 Subject: [PATCH] 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 --- stack/btm/btm_ble_int_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack/btm/btm_ble_int_types.h b/stack/btm/btm_ble_int_types.h index 4fb48b477..a57ca1890 100644 --- a/stack/btm/btm_ble_int_types.h +++ b/stack/btm/btm_ble_int_types.h @@ -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 */ -- 2.11.0