diff --git a/include/bluetooth/mesh/access.h b/include/bluetooth/mesh/access.h index bb13aca0ebf..e8e46af224d 100644 --- a/include/bluetooth/mesh/access.h +++ b/include/bluetooth/mesh/access.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + #define BT_MESH_ADDR_UNASSIGNED 0x0000 #define BT_MESH_ADDR_ALL_NODES 0xffff #define BT_MESH_ADDR_PROXIES 0xfffc @@ -417,6 +421,10 @@ struct bt_mesh_comp { struct bt_mesh_elem *elem; }; +#ifdef __cplusplus +} +#endif + /** * @} */ diff --git a/include/bluetooth/mesh/cfg_cli.h b/include/bluetooth/mesh/cfg_cli.h index 4d5b9e1480d..96e47e1e2e7 100644 --- a/include/bluetooth/mesh/cfg_cli.h +++ b/include/bluetooth/mesh/cfg_cli.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + /** Mesh Configuration Client Model Context */ struct bt_mesh_cfg_cli { struct bt_mesh_model *model; @@ -219,6 +223,9 @@ int bt_mesh_cfg_hb_pub_get(u16_t net_idx, u16_t addr, s32_t bt_mesh_cfg_cli_timeout_get(void); void bt_mesh_cfg_cli_timeout_set(s32_t timeout); +#ifdef __cplusplus +} +#endif /** * @} */ diff --git a/include/bluetooth/mesh/cfg_srv.h b/include/bluetooth/mesh/cfg_srv.h index 36e3c5e2a53..a28efdeafae 100644 --- a/include/bluetooth/mesh/cfg_srv.h +++ b/include/bluetooth/mesh/cfg_srv.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + /** Mesh Configuration Server Model Context */ struct bt_mesh_cfg_srv { struct bt_mesh_model *model; @@ -62,6 +66,10 @@ extern const struct bt_mesh_model_op bt_mesh_cfg_srv_op[]; BT_MESH_MODEL(BT_MESH_MODEL_ID_CFG_SRV, \ bt_mesh_cfg_srv_op, NULL, srv_data) +#ifdef __cplusplus +} +#endif + /** * @} */ diff --git a/include/bluetooth/mesh/health_cli.h b/include/bluetooth/mesh/health_cli.h index 709e7b645e7..8ebd8012b1d 100644 --- a/include/bluetooth/mesh/health_cli.h +++ b/include/bluetooth/mesh/health_cli.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + /** Mesh Health Client Model Context */ struct bt_mesh_health_cli { struct bt_mesh_model *model; @@ -65,6 +69,10 @@ int bt_mesh_health_attention_set(u16_t net_idx, u16_t addr, u16_t app_idx, s32_t bt_mesh_health_cli_timeout_get(void); void bt_mesh_health_cli_timeout_set(s32_t timeout); +#ifdef __cplusplus +} +#endif + /** * @} */ diff --git a/include/bluetooth/mesh/health_srv.h b/include/bluetooth/mesh/health_srv.h index 77a7389b870..2215ae0f6fe 100644 --- a/include/bluetooth/mesh/health_srv.h +++ b/include/bluetooth/mesh/health_srv.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + struct bt_mesh_health_srv_cb { /* Fetch current faults */ int (*fault_get_cur)(struct bt_mesh_model *model, u8_t *test_id, @@ -83,6 +87,10 @@ extern const struct bt_mesh_model_op bt_mesh_health_srv_op[]; BT_MESH_MODEL(BT_MESH_MODEL_ID_HEALTH_SRV, \ bt_mesh_health_srv_op, pub, srv) +#ifdef __cplusplus +} +#endif + /** * @} */ diff --git a/include/bluetooth/mesh/main.h b/include/bluetooth/mesh/main.h index 82f322496e3..17b9d58e68e 100644 --- a/include/bluetooth/mesh/main.h +++ b/include/bluetooth/mesh/main.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { BT_MESH_NO_OUTPUT = 0, BT_MESH_BLINK = BIT(0), @@ -356,6 +360,10 @@ int bt_mesh_lpn_poll(void); */ void bt_mesh_lpn_set_cb(void (*cb)(u16_t friend_addr, bool established)); +#ifdef __cplusplus +} +#endif + /** * @} */ diff --git a/include/bluetooth/mesh/proxy.h b/include/bluetooth/mesh/proxy.h index 419cb57fa20..a255d3085a2 100644 --- a/include/bluetooth/mesh/proxy.h +++ b/include/bluetooth/mesh/proxy.h @@ -17,6 +17,10 @@ * @{ */ +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Enable advertising with Node Identity. * @@ -28,6 +32,10 @@ */ int bt_mesh_proxy_identity_enable(void); +#ifdef __cplusplus +} +#endif + /** * @} */