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