Bluetooth: Mesh: Add header file support for C++

Add preprocessor directive for C++ compatibility.

Signed-off-by: Robert Konc <robert@konc.si>
This commit is contained in:
Robert Konc 2018-12-08 10:35:58 +01:00 committed by Johan Hedberg
commit 62c8fee2ec
7 changed files with 55 additions and 0 deletions

View file

@ -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
/**
* @}
*/