[api] change commissioner API from c++ style to c style (#4192)

This commit is contained in:
Zhanglong Xia
2019-09-19 23:09:48 +08:00
committed by Jonathan Hui
parent 05eb406106
commit c81fc67b82
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -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.
+2 -2
View File
@@ -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)