Enhance command execution with improved concurrency and documentation updates. Refined the CommandTaskContext structure for better task management and clarified usage instructions for 'memtest' and 'tasktest' commands in README.md.
This commit is contained in:
10
commands.h
10
commands.h
@@ -9,6 +9,7 @@
|
||||
#define COMMANDS_H
|
||||
|
||||
#include "boot_info.h"
|
||||
#include "task.h"
|
||||
|
||||
/* Handler function signature: receives BootInfo and any argument text. */
|
||||
typedef void (*CommandHandlerFn)(BootInfo *Boot, CHAR16 *Args);
|
||||
@@ -26,8 +27,13 @@ typedef struct {
|
||||
CommandHandlerFn handler; /* function that executes the cmd */
|
||||
} Command;
|
||||
|
||||
/* Parse and dispatch a line of user input. */
|
||||
void execute_command(BootInfo *Boot, CHAR16 *Input);
|
||||
/* Parse and dispatch a line of user input.
|
||||
*
|
||||
* Returns:
|
||||
* - Pointer to a Task representing the spawned command process,
|
||||
* or NULL if the command was not found or ran synchronously.
|
||||
*/
|
||||
Task *execute_command(BootInfo *Boot, CHAR16 *Input);
|
||||
|
||||
/* Print a formatted list of all registered commands. */
|
||||
void show_help(BootInfo *Boot);
|
||||
|
||||
Reference in New Issue
Block a user