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:
parent
ce8e1ecd2d
commit
62c8fee2ec
7 changed files with 55 additions and 0 deletions
|
@ -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
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue