xref: /nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/prov.h (revision 042d53a763ad75cb1465103098bb88c245d95138)
1 /*  Bluetooth Mesh */
2 
3 /*
4  * Copyright (c) 2017 Intel Corporation
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 #ifndef __PROV_H__
10 #define __PROV_H__
11 
12 #include "os/os_mbuf.h"
13 #include "mesh/mesh.h"
14 #include "../src/ble_hs_conn_priv.h"
15 
16 void bt_mesh_pb_adv_recv(struct os_mbuf *buf);
17 
18 bool bt_prov_active(void);
19 
20 int bt_mesh_pb_gatt_open(uint16_t conn_handle);
21 int bt_mesh_pb_gatt_close(uint16_t conn_handle);
22 int bt_mesh_pb_gatt_recv(uint16_t conn_handle, struct os_mbuf *buf);
23 
24 const struct bt_mesh_prov *bt_mesh_prov_get(void);
25 
26 int bt_mesh_prov_init(const struct bt_mesh_prov *prov);
27 
28 void bt_mesh_prov_reset_link(void);
29 
30 void bt_mesh_prov_complete(u16_t net_idx, u16_t addr);
31 void bt_mesh_prov_reset(void);
32 
33 #endif
34