1 /**
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "bstests.h"
8 #include "bs_tracing.h"
9 
10 #include <zephyr/bluetooth/conn.h>
11 #include <zephyr/bluetooth/uuid.h>
12 
13 #include "babblekit/testcase.h"
14 #include "babblekit/flags.h"
15 
16 DECLARE_FLAG(flag_pairing_complete);
17 DECLARE_FLAG(flag_bonded);
18 DECLARE_FLAG(flag_not_bonded);
19 
20 void scan_connect_to_first_result(void);
21 struct bt_conn *get_g_conn(void);
22 void clear_g_conn(void);
23 void disconnect(void);
24 void wait_connected(void);
25 void wait_disconnected(void);
26 void create_adv(struct bt_le_ext_adv **adv);
27 void start_adv(struct bt_le_ext_adv *adv);
28 void stop_adv(struct bt_le_ext_adv *adv);
29 void set_security(bt_security_t sec);
30 void pairing_complete(struct bt_conn *conn, bool bonded);
31 void pairing_failed(struct bt_conn *conn, enum bt_security_err err);
32