From: Chris Manton Date: Sun, 20 Sep 2020 00:38:17 +0000 (-0700) Subject: Move function decls with usage stack/btm:: X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e3fb746365a8487d3931eaa30b01b4581bb3d9d9;p=android-x86%2Fsystem-bt.git Move function decls with usage stack/btm:: Towards readable code Bug: 163134718 Tag: #refactor Test: acts -tc BleCocTest Test: ble paired 2 phones Change-Id: I25f7c7024c29ac461d4f50db365fb28d97f5f407 --- diff --git a/stack/btm/btm_ble_int.h b/stack/btm/btm_ble_int.h index 8ff0e5db9..149482a1c 100644 --- a/stack/btm/btm_ble_int.h +++ b/stack/btm/btm_ble_int.h @@ -38,22 +38,14 @@ extern void btm_ble_process_periodic_adv_sync_est_evt(uint8_t len, uint8_t* p); extern void btm_ble_process_periodic_adv_pkt(uint8_t len, uint8_t* p); extern void btm_ble_process_periodic_adv_sync_lost_evt(uint8_t len, uint8_t* p); -extern tBTM_STATUS btm_ble_read_remote_name(const RawAddress& remote_bda, - tBTM_CMPL_CB* p_cb); -extern bool btm_ble_cancel_remote_name(const RawAddress& remote_bda); - -extern tBTM_STATUS btm_ble_set_discoverability(uint16_t combined_mode); -extern tBTM_STATUS btm_ble_set_connectability(uint16_t combined_mode); extern void btm_send_hci_set_scan_params(uint8_t scan_type, uint16_t scan_int, uint16_t scan_win, uint8_t addr_type_own, uint8_t scan_filter_policy); -extern tBTM_STATUS btm_ble_start_inquiry(uint8_t duration); extern void btm_ble_stop_scan(void); extern void btm_clear_all_pending_le_entry(void); extern void btm_ble_stop_scan(); -extern void btm_ble_stop_inquiry(void); extern void btm_ble_init(void); extern void btm_ble_connected(const RawAddress& bda, uint16_t handle, uint8_t enc_mode, uint8_t role, diff --git a/stack/btm/btm_inq.cc b/stack/btm/btm_inq.cc index 3b748f3dd..159bf5211 100644 --- a/stack/btm/btm_inq.cc +++ b/stack/btm/btm_inq.cc @@ -49,6 +49,14 @@ #include "stack/include/inq_hci_link_interface.h" extern void btm_inq_remote_name_timer_timeout(void* data); +extern tBTM_STATUS btm_ble_read_remote_name(const RawAddress& remote_bda, + tBTM_CMPL_CB* p_cb); +extern bool btm_ble_cancel_remote_name(const RawAddress& remote_bda); +extern tBTM_STATUS btm_ble_set_discoverability(uint16_t combined_mode); +extern tBTM_STATUS btm_ble_set_connectability(uint16_t combined_mode); + +extern tBTM_STATUS btm_ble_start_inquiry(uint8_t duration); +extern void btm_ble_stop_inquiry(void); using bluetooth::Uuid;