[cli] refine CLI APIs (#3501)

This commit is contained in:
Yakun Xu
2019-01-24 18:19:50 -08:00
committed by Jonathan Hui
parent 0ac326ea57
commit 5777e017ac
3 changed files with 48 additions and 48 deletions
+5 -5
View File
@@ -110,7 +110,7 @@ void otCliUartInit(otInstance *aInstance);
* @param[in] aUserCommands A pointer to an array with user commands.
* @param[in] aLength @p aUserCommands length.
*/
void otCliUartSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength);
void otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength);
/**
* Write a number of bytes to the CLI console as a hex string.
@@ -118,7 +118,7 @@ void otCliUartSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength
* @param[in] aBytes A pointer to data which should be printed.
* @param[in] aLength @p aBytes length.
*/
void otCliUartOutputBytes(const uint8_t *aBytes, uint8_t aLength);
void otCliOutputBytes(const uint8_t *aBytes, uint8_t aLength);
/**
* Write formatted string to the CLI console
@@ -126,7 +126,7 @@ void otCliUartOutputBytes(const uint8_t *aBytes, uint8_t aLength);
* @param[in] aFmt A pointer to the format string.
* @param[in] ... A matching list of arguments.
*/
void otCliUartOutputFormat(const char *aFmt, ...);
void otCliOutputFormat(const char *aFmt, ...);
/**
* Write string to the CLI console
@@ -134,14 +134,14 @@ void otCliUartOutputFormat(const char *aFmt, ...);
* @param[in] aString A pointer to the string, which may not be null-terminated.
* @param[in] aLength Number of bytes.
*/
void otCliUartOutput(const char *aString, uint16_t aLength);
void otCliOutput(const char *aString, uint16_t aLength);
/**
* Write error code to the CLI console
*
* @param[in] aError Error code value.
*/
void otCliUartAppendResult(otError aError);
void otCliAppendResult(otError aError);
/**
* Callback to write the OpenThread Log to the CLI console