1 /** @file
2  *  @brief Bluetooth shell functions
3  *
4  *  This is not to be included by the application.
5  */
6 
7 /*
8  * Copyright (c) 2017 Intel Corporation
9  *
10  * SPDX-License-Identifier: Apache-2.0
11  */
12 
13 #ifndef __BT_H
14 #define __BT_H
15 
16 #include <zephyr/bluetooth/bluetooth.h>
17 #include <sys/types.h>
18 
19 extern struct bt_conn *default_conn;
20 
21 bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf);
22 
23 #if defined(CONFIG_BT_ISO)
24 extern struct bt_iso_chan iso_chan;
25 #endif /* CONFIG_BT_ISO */
26 
27 #if defined(CONFIG_BT_EXT_ADV)
28 extern uint8_t selected_adv;
29 extern struct bt_le_ext_adv *adv_sets[CONFIG_BT_EXT_ADV_MAX_ADV_SET];
30 #if defined(CONFIG_BT_PER_ADV_SYNC)
31 extern size_t selected_per_adv_sync;
32 extern struct bt_le_per_adv_sync *per_adv_syncs[CONFIG_BT_PER_ADV_SYNC_MAX];
33 #endif /* CONFIG_BT_PER_ADV_SYNC */
34 #endif /* CONFIG_BT_EXT_ADV */
35 
36 void conn_addr_str(struct bt_conn *conn, char *addr, size_t len);
37 
38 /**
39  * @brief Compares two strings without case sensitivity
40  *
41  * @param substr The substring
42  * @param str The string to find the substring in
43  *
44  * @return true if @substr is a substring of @p, else false
45  */
46 bool is_substring(const char *substr, const char *str);
47 
48 #endif /* __BT_H */
49