1 /* 2 * Copyright 2020 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 /** 18 * Gabeldorsche related legacy-only-stack-side expansion and support code. 19 */ 20 #include "base/bind.h" 21 #include "btcore/include/module.h" // base::OnceClosure 22 #include "hci/include/btsnoop.h" 23 #include "hci/include/hci_layer.h" 24 25 const btsnoop_t* btsnoop_get_interface() { return nullptr; } 26 const packet_fragmenter_t* packet_fragmenter_get_interface() { return nullptr; } 27 bluetooth::common::MessageLoopThread* get_main_thread() { return nullptr; } 28 29 namespace bluetooth { 30 namespace bqr { 31 32 void DumpLmpLlMessage(uint8_t length, uint8_t* p_lmp_ll_message_event) {} 33 void DumpBtScheduling(unsigned char, unsigned char*) {} 34 35 } // namespace bqr 36 37 namespace shim { 38 39 bool is_gd_hci_enabled() { return false; } 40 bool is_gd_shim_enabled() { return false; } 41 bool is_gd_stack_started_up() { return false; } 42 void Post(base::OnceClosure task) {} 43 const hci_t* hci_layer_get_interface() { return nullptr; } 44 45 } // namespace shim 46 } // namespace bluetooth 47