From febca2ab748d57aa10fc250703698cd095d6a788 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 28 Nov 2018 21:49:12 +0100 Subject: [PATCH] mesh: add c++ guard to mesh_transport --- test/mesh/mesh_transport.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/mesh/mesh_transport.h b/test/mesh/mesh_transport.h index 960fd93ac..c7b7140e5 100644 --- a/test/mesh/mesh_transport.h +++ b/test/mesh/mesh_transport.h @@ -35,6 +35,16 @@ * */ +#ifndef __MESH_TRANSPORT_H +#define __MESH_TRANSPORT_H + +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + #include #include "ble/mesh/mesh_network.h" @@ -51,3 +61,9 @@ uint8_t mesh_upper_transport_send_control_pdu(uint16_t netkey_index, uint8_t ttl void mesh_upper_transport_set_seq(uint32_t seq); void mesh_lower_transport_received_mesage(mesh_network_callback_type_t callback_type, mesh_network_pdu_t * network_pdu); + +#ifdef __cplusplus +} /* end of extern "C" */ +#endif + +#endif