From b14e1811aae6cfbf403bd7048461b49bed58c1cb Mon Sep 17 00:00:00 2001 From: Chris Manton Date: Mon, 7 Sep 2020 21:52:15 -0700 Subject: [PATCH] Add inquiry to hci link interface Towards readable code Bug: 163134718 Tag: #refactor Test: compile & verify basic functions working Change-Id: Ib85874197d405b449a973c935af9fcf124650cd3 --- stack/include/inq_hci_link_interface.h | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 stack/include/inq_hci_link_interface.h diff --git a/stack/include/inq_hci_link_interface.h b/stack/include/inq_hci_link_interface.h new file mode 100644 index 000000000..751473707 --- /dev/null +++ b/stack/include/inq_hci_link_interface.h @@ -0,0 +1,35 @@ +/* + * Copyright 2020 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#pragma once + +#include + +#include + +#include "types/raw_address.h" + +extern void btm_process_remote_name(const RawAddress* bda, BD_NAME name, + uint16_t evt_len, uint8_t hci_status); + +extern void btm_process_inq_results(uint8_t* p, uint8_t hci_evt_len, + uint8_t inq_res_mode); + +extern void btm_process_inq_complete(uint8_t status, uint8_t mode); +extern void btm_process_cancel_complete(uint8_t status, uint8_t mode); + +extern void btm_acl_process_sca_cmpl_pkt(uint8_t len, uint8_t* data); -- 2.11.0