otInstance Declarations (#473)

* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
Nick Banks
2016-09-12 14:29:43 -07:00
committed by Jonathan Hui
parent 9b1de7bbb2
commit ffbe65c6dd
67 changed files with 1560 additions and 1099 deletions
+6 -3
View File
@@ -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);
/**
* @}
+6 -3
View File
@@ -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);
/**
* @}