1 /******************************************************************************
2 *
3 * Copyright 2019 The Android Open Source Project
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 ******************************************************************************/
18
19 #include "hci/include/btsnoop.h"
20
capture(const BT_HDR *,bool)21 static void capture(const BT_HDR*, bool) { /* do nothing */ }
22
allowlist_l2c_channel(uint16_t,uint16_t,uint16_t)23 static void allowlist_l2c_channel(uint16_t, uint16_t, uint16_t) { /* do nothing */ }
24
allowlist_rfc_dlci(uint16_t,uint8_t)25 static void allowlist_rfc_dlci(uint16_t, uint8_t) { /* do nothing */ }
26
add_rfc_l2c_channel(uint16_t,uint16_t,uint16_t)27 static void add_rfc_l2c_channel(uint16_t, uint16_t, uint16_t) { /* do nothing */ }
28
clear_l2cap_allowlist(uint16_t,uint16_t,uint16_t)29 static void clear_l2cap_allowlist(uint16_t, uint16_t, uint16_t) { /* do nothing */ }
30
31 static const btsnoop_t fake_snoop = {capture, allowlist_l2c_channel, allowlist_rfc_dlci,
32 add_rfc_l2c_channel, clear_l2cap_allowlist};
33
btsnoop_get_interface()34 const btsnoop_t* btsnoop_get_interface() { return &fake_snoop; }
35