mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
@@ -49,19 +49,22 @@ extern "C" {
|
||||
/**
|
||||
* This function enables the Thread Commissioner role.
|
||||
*
|
||||
* @param[in] aPSKd A pointer to the PSKd.
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aPSKd A pointer to the PSKd.
|
||||
*
|
||||
* @retval kThreadError_None Successfully started the Commissioner role.
|
||||
* @retval kThreadError_InvalidArgs @p aPSKd is invalid.
|
||||
*
|
||||
*/
|
||||
ThreadError otCommissionerStart(const char *aPSKd);
|
||||
ThreadError otCommissionerStart(otInstance *aInstance, const char *aPSKd);
|
||||
|
||||
/**
|
||||
* This function disables the Thread Commissioner role.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
*
|
||||
*/
|
||||
ThreadError otCommissionerStop(void);
|
||||
ThreadError otCommissionerStop(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
@@ -49,19 +49,22 @@ extern "C" {
|
||||
/**
|
||||
* This function enables the Thread Joiner role.
|
||||
*
|
||||
* @param[in] aPSKd A pointer to the PSKd.
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
* @param[in] aPSKd A pointer to the PSKd.
|
||||
*
|
||||
* @retval kThreadError_None Successfully started the Commissioner role.
|
||||
* @retval kThreadError_InvalidArgs @p aPSKd is invalid.
|
||||
*
|
||||
*/
|
||||
ThreadError otJoinerStart(const char *aPSKd);
|
||||
ThreadError otJoinerStart(otInstance *aInstance, const char *aPSKd);
|
||||
|
||||
/**
|
||||
* This function disables the Thread Joiner role.
|
||||
*
|
||||
* @param[in] aInstance A pointer to an OpenThread instance.
|
||||
*
|
||||
*/
|
||||
ThreadError otJoinerStop(void);
|
||||
ThreadError otJoinerStop(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
Reference in New Issue
Block a user