Add Thread Auto Start Support (#1268)

* Add Thread Auto Start Support

* Add compile-time option

* Return error in Windows API
This commit is contained in:
Nick Banks
2017-02-20 17:29:20 -08:00
committed by Jonathan Hui
parent 500dada64c
commit 64f5ab43fc
11 changed files with 230 additions and 13 deletions
+21
View File
@@ -315,6 +315,27 @@ OTAPI ThreadError OTCALL otThreadStart(otInstance *aInstance);
*/
OTAPI ThreadError OTCALL otThreadStop(otInstance *aInstance);
/**
* This function configures the Thread stack to automatically start on reinitialization.
* It has no effect on the current Thread state.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aStartAutomatically TRUE to automatically start; FALSE to not automatically start.
*
*/
OTAPI ThreadError OTCALL otThreadSetAutoStart(otInstance *aInstance, bool aStartAutomatically);
/**
* This function queries if the Thread stack is configured to automatically start on reinitialization.
*
* @param[in] aInstance A pointer to an OpenThread instance.
*
* @retval TRUE It is configured to automatically start.
* @retval FALSE It is not configured to automatically start.
*
*/
OTAPI bool OTCALL otThreadGetAutoStart(otInstance *aInstance);
/**
* This function indicates whether a node is the only router on the network.
*