mirror of
https://github.com/espressif/openthread.git
synced 2026-07-31 16:17:47 +00:00
otInstance Declarations (#473)
* Add otInstance type declaration and update ot APIs to take it as input.
This commit is contained in:
@@ -57,11 +57,12 @@ typedef int (*otCliConsoleOutputCallback)(const char *aBuf,
|
||||
/**
|
||||
* Initialize the CLI CONSOLE module.
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
* @param[in] aCallback A callback method called to process console output.
|
||||
* @param[in] aContext A user context pointer.
|
||||
*
|
||||
*/
|
||||
void otCliConsoleInit(otCliConsoleOutputCallback aCallback, void *aContext);
|
||||
void otCliConsoleInit(otInstance *aInstance, otCliConsoleOutputCallback aCallback, void *aContext);
|
||||
|
||||
/**
|
||||
* This method is called to feed in a console input line.
|
||||
|
||||
@@ -42,8 +42,10 @@ extern "C" {
|
||||
/**
|
||||
* Initialize the CLI UART module.
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
*
|
||||
*/
|
||||
void otCliUartInit(void);
|
||||
void otCliUartInit(otInstance *aInstance);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user