mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 02:39:52 +00:00
Adding new ot API otNetDataGetNextRoute() in netdata.h (#1725)
New method for iterating through the "external route" entries in the network data.
This commit is contained in:
committed by
Jonathan Hui
parent
66f6e7088d
commit
2e6a3ecb69
@@ -147,6 +147,22 @@ OTAPI ThreadError OTCALL otNetDataAddRoute(otInstance *aInstance, const otExtern
|
||||
*/
|
||||
OTAPI ThreadError OTCALL otNetDataRemoveRoute(otInstance *aInstance, const otIp6Prefix *aPrefix);
|
||||
|
||||
/**
|
||||
* This function gets the next external route in the Network Data.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aLocal TRUE to retrieve from the local Network Data, FALSE for partition's Network Data
|
||||
* @param[inout] aIterator A pointer to the Network Data iterator context. To get the first external route entry
|
||||
it should be set to OT_NETWORK_DATA_ITERATOR_INIT.
|
||||
* @param[out] aConfig A pointer to where the External Route information will be placed.
|
||||
*
|
||||
* @retval kThreadError_None Successfully found the next External Route.
|
||||
* @retval kThreadError_NotFound No subsequent external route entry exists in the Thread Network Data.
|
||||
*
|
||||
*/
|
||||
ThreadError otNetDataGetNextRoute(otInstance *aInstance, bool aLocal, otNetworkDataIterator *aIterator,
|
||||
otExternalRouteConfig *aConfig);
|
||||
|
||||
/**
|
||||
* Immediately register the local network data with the Leader.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user