From 319112b4066faa60ee1616f646bf25411bd1096c Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 28 Nov 2023 20:45:15 -0800 Subject: [PATCH] [border-router] add missing `otBorderRoutingDhcp6PdGetState()` declaration (#9654) This commit adds `otBorderRoutingDhcp6PdGetState()` function declaration in `border_routing.h` which was already implemented in `border_routing_api.cpp` file. --- include/openthread/border_routing.h | 12 ++++++++++++ include/openthread/instance.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/openthread/border_routing.h b/include/openthread/border_routing.h index 3569a9e44..3fd95c6ad 100644 --- a/include/openthread/border_routing.h +++ b/include/openthread/border_routing.h @@ -444,6 +444,18 @@ otError otBorderRoutingGetNextRouterEntry(otInstance *aI */ void otBorderRoutingDhcp6PdSetEnabled(otInstance *aInstance, bool aEnabled); +/** + * Gets the current state of DHCPv6 Prefix Delegation. + * + * Requires `OPENTHREAD_CONFIG_BORDER_ROUTING_DHCP6_PD_ENABLE` to be enabled. + * + * @param[in] aInstance A pointer to an OpenThread instance. + * + * @returns The current state of DHCPv6 Prefix Delegation. + * + */ +otBorderRoutingDhcp6PdState otBorderRoutingDhcp6PdGetState(otInstance *aInstance); + /** * @} * diff --git a/include/openthread/instance.h b/include/openthread/instance.h index 7094bf408..eee33cf59 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 (377) +#define OPENTHREAD_API_VERSION (378) /** * @addtogroup api-instance