Revision 10fd7ac9 core/inc/aos_shell.h
| core/inc/aos_shell.h | ||
|---|---|---|
| 324 | 324 |
/** |
| 325 | 325 |
* @brief Size of the input buffer. |
| 326 | 326 |
*/ |
| 327 |
size_t width; |
|
| 327 |
size_t length; |
|
| 328 |
|
|
| 329 |
/** |
|
| 330 |
* @brief Size of the argument buffer. |
|
| 331 |
*/ |
|
| 332 |
size_t nargs; |
|
| 328 | 333 |
} input; |
| 329 | 334 |
|
| 330 | 335 |
/** |
| ... | ... | |
| 357 | 362 |
bool noinput; |
| 358 | 363 |
} inputdata; |
| 359 | 364 |
|
| 360 |
/** |
|
| 361 |
* @brief Argument buffer. |
|
| 362 |
*/ |
|
| 363 |
char** arglist; |
|
| 364 | 365 |
|
| 365 |
/** |
|
| 366 |
* @brief Size of the argument buffer. |
|
| 367 |
*/ |
|
| 368 |
size_t arglistsize; |
|
| 369 | 366 |
|
| 370 | 367 |
/** |
| 371 | 368 |
* @brief Configuration flags. |
| ... | ... | |
| 397 | 394 |
#if defined(__cplusplus) |
| 398 | 395 |
extern "C" {
|
| 399 | 396 |
#endif /* defined(__cplusplus) */ |
| 400 |
void aosShellInit(aos_shell_t* shell, event_source_t* oseventsource, const char* prompt, char* line, size_t linesize, char** arglist, size_t arglistsize);
|
|
| 397 |
void aosShellInit(aos_shell_t* shell, event_source_t* oseventsource, const char* prompt, char* line, size_t linesize, size_t numargs);
|
|
| 401 | 398 |
void aosShellStreamInit(AosShellStream* stream); |
| 402 | 399 |
void aosShellChannelInit(AosShellChannel* channel, BaseAsynchronousChannel* asyncchannel); |
| 403 | 400 |
aos_status_t aosShellAddCommand(aos_shell_t* shell, aos_shellcommand_t* cmd); |
Also available in: Unified diff