1 /* 2 * Copyright 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 19 #include <base/functional/callback.h> 20 #include <base/location.h> 21 22 #include <cstdint> 23 24 #include "stack/include/bt_hdr.h" 25 26 /* Functions provided by btu_hcif.cc 27 *********************************** 28 */ 29 void btu_hcif_process_event(uint8_t controller_id, const BT_HDR* p_buf); 30 void btu_hcif_send_cmd(uint8_t controller_id, const BT_HDR* p_msg); 31 void btu_hcif_send_cmd_with_cb(const base::Location& posted_from, 32 uint16_t opcode, uint8_t* params, 33 uint8_t params_len, 34 base::OnceCallback<void(uint8_t*, uint16_t)> cb); 35 namespace bluetooth::legacy::testing { 36 void btu_hcif_hdl_command_status(uint16_t opcode, uint8_t status, 37 const uint8_t* p_cmd); 38 } // namespace bluetooth::legacy::testing