1 #ifndef _GPXE_COMMAND_H
2 #define _GPXE_COMMAND_H
4 #include <gpxe/tables.h>
6 /** A command-line command */
8 /** Name of the command */
11 * Function implementing the command
13 * @v argc Argument count
14 * @v argv Argument list
15 * @ret rc Return status code
17 int ( * exec ) ( int argc, char **argv );
20 #define COMMANDS __table ( struct command, "commands" )
22 #define __command __table_entry ( COMMANDS, 01 )
24 #endif /* _GPXE_COMMAND_H */