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 -2
View File
@@ -44,8 +44,10 @@ extern "C" {
/**
* This function performs a software reset on the platform, if supported.
*
* @param[in] aInstance The OpenThread instance structure.
*
*/
void otPlatReset(void);
void otPlatReset(otInstance *aInstance);
/**
* Enumeration of possible reset reason codes.
@@ -71,8 +73,10 @@ typedef enum
/**
* This function returns the reason for the last platform reset.
*
* @param[in] aInstance The OpenThread instance structure.
*
*/
otPlatResetReason otPlatGetResetReason(void);
otPlatResetReason otPlatGetResetReason(otInstance *aInstance);
#ifdef __cplusplus
} // extern "C"