[netdata] add api to check if joiner is in steering data (#5392)

This commit is contained in:
Yakun Xu
2020-08-14 22:09:14 -07:00
committed by GitHub
parent bc195d1329
commit 16a5c52d9f
15 changed files with 213 additions and 6 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ extern "C" {
* @note This number versions both OpenThread platform and user APIs.
*
*/
#define OPENTHREAD_API_VERSION (23)
#define OPENTHREAD_API_VERSION (24)
/**
* @addtogroup api-instance
+30
View File
@@ -274,6 +274,36 @@ uint8_t otNetDataGetVersion(otInstance *aInstance);
*/
uint8_t otNetDataGetStableVersion(otInstance *aInstance);
/**
* Check if the steering data includes a Joiner.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aEui64 A pointer to the Joiner's IEEE EUI-64.
*
* @retval OT_ERROR_NONE @p aEui64 is included in the steering data.
* @retval OT_ERROR_INVALID_STATE No steering data present.
* @retval OT_ERROR_NOT_FOUND @p aEui64 is not included in the steering data.
*
*/
otError otNetDataSteeringDataCheckJoiner(otInstance *aInstance, const otExtAddress *aEui64);
// Forward declaration
struct otJoinerDiscerner;
/**
* Check if the steering data includes a Joiner with a given discerner value.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aDiscerner A pointer to the Joiner Discerner.
*
* @retval OT_ERROR_NONE @p aDiscerner is included in the steering data.
* @retval OT_ERROR_INVALID_STATE No steering data present.
* @retval OT_ERROR_NOT_FOUND @p aDiscerner is not included in the steering data.
*
*/
otError otNetDataSteeringDataCheckJoinerWithDiscerner(otInstance * aInstance,
const struct otJoinerDiscerner *aDiscerner);
/**
* @}
*