OSDN Git Service

Add inquiry to hci link interface
authorChris Manton <cmanton@google.com>
Tue, 8 Sep 2020 04:52:15 +0000 (21:52 -0700)
committerChris Manton <cmanton@google.com>
Thu, 10 Sep 2020 05:23:26 +0000 (05:23 +0000)
Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ib85874197d405b449a973c935af9fcf124650cd3

stack/include/inq_hci_link_interface.h [new file with mode: 0644]

diff --git a/stack/include/inq_hci_link_interface.h b/stack/include/inq_hci_link_interface.h
new file mode 100644 (file)
index 0000000..7514737
--- /dev/null
@@ -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 <cstdint>
+
+#include <cstdint>
+
+#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);