From d6e3ce8d7b8c80b6fee5fd0b9e89b8cea068b87f Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Sun, 20 Sep 2020 12:46:31 -0700 Subject: [PATCH] Encapsulate tBTM_CB::btm_scn Towards readable code Bug: 163134718 Tag: #refactor Test: act.py -tc BleCocTest Test: ble paired 2 phones Test: classic paired Bose SoundLink Change-Id: Ic947434651ba3312342507ac1ff4da92e176b0bb --- stack/btm/btm_int_types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stack/btm/btm_int_types.h b/stack/btm/btm_int_types.h index 49da0c229..af8515cee 100644 --- a/stack/btm/btm_int_types.h +++ b/stack/btm/btm_int_types.h @@ -289,6 +289,11 @@ typedef struct { tBTM_BT_QUALITY_REPORT_RECEIVER* p_bqr_report_receiver; tACL_CB acl_cb_; + + private: + friend uint8_t BTM_AllocateSCN(void); + friend bool BTM_TryAllocateSCN(uint8_t scn); + friend bool BTM_FreeSCN(uint8_t scn); uint8_t btm_scn[BTM_MAX_SCN_]; } tBTM_CB; -- 2.11.0