OSDN Git Service

Add stack/include/acl_hci_link_interface.h
authorChris Manton <cmanton@google.com>
Thu, 13 Aug 2020 23:10:00 +0000 (16:10 -0700)
committerChris Manton <cmanton@google.com>
Fri, 14 Aug 2020 04:48:57 +0000 (21:48 -0700)
Prototypes for hci=>acl functions

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I468ca69df1f6d2cf44f46642437ca7f278b78b26

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

diff --git a/stack/include/acl_hci_link_interface.h b/stack/include/acl_hci_link_interface.h
new file mode 100644 (file)
index 0000000..bdc7b9e
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ *  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>
+
+// This header contains functions for HCIF-Acl Management to invoke
+//
+void btm_acl_encrypt_change(uint16_t handle, uint8_t status,
+                            uint8_t encr_enable);
+void btm_blacklist_role_change_device(const RawAddress& bd_addr,
+                                      uint8_t hci_status);
+void btm_pm_proc_cmd_status(uint8_t status);
+void btm_pm_proc_mode_change(uint8_t hci_status, uint16_t hci_handle,
+                             uint8_t mode, uint16_t interval);
+void btm_pm_proc_ssr_evt(uint8_t* p, uint16_t evt_len);
+void btm_process_clk_off_comp_evt(uint16_t hci_handle, uint16_t clock_offset);
+void btm_read_automatic_flush_timeout_complete(uint8_t* p);
+void btm_read_failed_contact_counter_complete(uint8_t* p);
+void btm_read_link_quality_complete(uint8_t* p);
+void btm_read_remote_ext_features_complete(uint8_t* p, uint8_t evt_len);
+void btm_read_remote_ext_features_failed(uint8_t status, uint16_t handle);
+void btm_read_remote_features_complete(uint8_t* p);
+void btm_read_remote_version_complete(uint8_t* p);
+void btm_read_rssi_complete(uint8_t* p);
+void btm_read_tx_power_complete(uint8_t* p, bool is_ble);