mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
[api] change commissioner API from c++ style to c style (#4192)
This commit is contained in:
committed by
Jonathan Hui
parent
05eb406106
commit
c81fc67b82
@@ -201,14 +201,14 @@ otError otCommissionerAddJoiner(otInstance * aInstance,
|
||||
* This method get joiner info at aIterator position.
|
||||
*
|
||||
* @param[in] aInstance A pointer to instance.
|
||||
* @param[inout] aIterator A iterator to the index of the joiner.
|
||||
* @param[inout] aIterator A pointer to the Joiner Info iterator context.
|
||||
* @param[out] aJoiner A reference to Joiner info.
|
||||
*
|
||||
* @retval OT_ERROR_NONE Successfully get the Joiner info.
|
||||
* @retval OT_ERROR_NOT_FOUND Not found next Joiner.
|
||||
* @retval OT_ERROR_NONE Successfully get the Joiner info.
|
||||
* @retval OT_ERROR_NOT_FOUND Not found next Joiner.
|
||||
*
|
||||
*/
|
||||
otError otCommissionerGetNextJoinerInfo(otInstance *aInstance, uint16_t &aIterator, otJoinerInfo &aJoiner);
|
||||
otError otCommissionerGetNextJoinerInfo(otInstance *aInstance, uint16_t *aIterator, otJoinerInfo *aJoiner);
|
||||
|
||||
/**
|
||||
* This function removes a Joiner entry.
|
||||
|
||||
@@ -81,11 +81,11 @@ otError otCommissionerAddJoiner(otInstance *aInstance, const otExtAddress *aEui6
|
||||
aTimeout);
|
||||
}
|
||||
|
||||
otError otCommissionerGetNextJoinerInfo(otInstance *aInstance, uint16_t &aIterator, otJoinerInfo &aJoiner)
|
||||
otError otCommissionerGetNextJoinerInfo(otInstance *aInstance, uint16_t *aIterator, otJoinerInfo *aJoiner)
|
||||
{
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
return instance.Get<MeshCoP::Commissioner>().GetNextJoinerInfo(aIterator, aJoiner);
|
||||
return instance.Get<MeshCoP::Commissioner>().GetNextJoinerInfo(*aIterator, *aJoiner);
|
||||
}
|
||||
|
||||
otError otCommissionerRemoveJoiner(otInstance *aInstance, const otExtAddress *aEui64)
|
||||
|
||||
Reference in New Issue
Block a user