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 }
23
allowlist_l2c_channel(uint16_t,uint16_t,uint16_t)24 static void allowlist_l2c_channel(uint16_t, uint16_t,
25 uint16_t) { /* do nothing */
26 }
27
allowlist_rfc_dlci(uint16_t,uint8_t)28 static void allowlist_rfc_dlci(uint16_t, uint8_t) { /* do nothing */
29 }
30
add_rfc_l2c_channel(uint16_t,uint16_t,uint16_t)31 static void add_rfc_l2c_channel(uint16_t, uint16_t, uint16_t) { /* do nothing */
32 }
33
clear_l2cap_allowlist(uint16_t,uint16_t,uint16_t)34 static void clear_l2cap_allowlist(uint16_t, uint16_t,
35 uint16_t) { /* do nothing */
36 }
37
38 static const btsnoop_t fake_snoop = {capture, allowlist_l2c_channel,
39 allowlist_rfc_dlci, add_rfc_l2c_channel,
40 clear_l2cap_allowlist};
41
btsnoop_get_interface()42 const btsnoop_t* btsnoop_get_interface() { return &fake_snoop; }
43