[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / include / gpxe / command.h
blob51ca6d6d59eb5aa4f7fe3473fe48ff82f14a4356
1 #ifndef _GPXE_COMMAND_H
2 #define _GPXE_COMMAND_H
4 FILE_LICENCE ( GPL2_OR_LATER );
6 #include <gpxe/tables.h>
8 /** A command-line command */
9 struct command {
10 /** Name of the command */
11 const char *name;
12 /**
13 * Function implementing the command
15 * @v argc Argument count
16 * @v argv Argument list
17 * @ret rc Return status code
19 int ( * exec ) ( int argc, char **argv );
22 #define COMMANDS __table ( struct command, "commands" )
24 #define __command __table_entry ( COMMANDS, 01 )
26 #endif /* _GPXE_COMMAND_H */