Skip to content

Commit

Permalink
net: bt: fix C++ link errors
Browse files Browse the repository at this point in the history
Signed-off-by: Rihards Skuja <[email protected]>
  • Loading branch information
rhssk authored and jukkar committed Aug 17, 2020
1 parent 85cad85 commit 4bd247a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/net/bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

#include <net/net_mgmt.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Management part definitions */

#define _NET_BT_LAYER NET_MGMT_LAYER_L2
Expand Down Expand Up @@ -57,4 +61,8 @@ enum net_event_bt_cmd {

NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_BT_DISCONNECT);

#ifdef __cplusplus
}
#endif

#endif /* ZEPHYR_INCLUDE_NET_BT_H_ */

0 comments on commit 4bd247a

Please sign in to comment.