From 7e438caf304d8eb697c38288c00b5fc07e4b2d44 Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Fri, 31 Dec 2021 02:49:17 +0800 Subject: [PATCH] [bbr] fix bbr header C compliance (#7272) Fix compile errors when including backbone_router_ftd.h in C files. --- include/openthread/backbone_router_ftd.h | 4 ++-- include/openthread/instance.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/openthread/backbone_router_ftd.h b/include/openthread/backbone_router_ftd.h index 741aade2c..017c71b1f 100644 --- a/include/openthread/backbone_router_ftd.h +++ b/include/openthread/backbone_router_ftd.h @@ -351,12 +351,12 @@ void otBackboneRouterSetNdProxyCallback(otInstance * aInstanc * Represents the Backbone Router ND Proxy info. * */ -struct otBackboneRouterNdProxyInfo +typedef struct otBackboneRouterNdProxyInfo { otIp6InterfaceIdentifier *mMeshLocalIid; ///< Mesh-local IID uint32_t mTimeSinceLastTransaction; ///< Time since last transaction (Seconds) uint16_t mRloc16; ///< RLOC16 -}; +} otBackboneRouterNdProxyInfo; /** * This method gets the Backbone Router ND Proxy info. diff --git a/include/openthread/instance.h b/include/openthread/instance.h index 28eb327f1..379d9496f 100644 --- a/include/openthread/instance.h +++ b/include/openthread/instance.h @@ -53,7 +53,7 @@ extern "C" { * @note This number versions both OpenThread platform and user APIs. * */ -#define OPENTHREAD_API_VERSION (178) +#define OPENTHREAD_API_VERSION (179) /** * @addtogroup api-instance