|
RPV Event driven kernel
|
Command descriptor structure. More...
#include <command.h>
Data Fields | |
| const char * | text |
| Null-terminated command name string. | |
| int(*const | handler )(const int argc, const char **argv) |
| Command handler function pointer. | |
Command descriptor structure.
Represents a shell command entry stored in the command table. Instances of this structure are typically placed in a dedicated linker section and discovered at runtime by the shell subsystem.
The structure binds a command name to its handler function.
| int(*const handler) (const int argc, const char **argv) |
Command handler function pointer.
Function invoked when the command is executed.
| [in] | argc | Number of arguments in argv. |
| [in] | argv | Array of argument strings. |
| 0 | Command executed successfully. |
| <0 | Command failed (implementation-defined). |
| const char* text |
Null-terminated command name string.
Must point to a valid constant string. The string must remain valid for the lifetime of the program.