[sundance] Add reset completion check
[gpxe.git] / src / include / gpxe / command.h
blob5d8057ab531eb40db1dfee4af1e1e8dd6aadee2f
1 #ifndef _GPXE_COMMAND_H
2 #define _GPXE_COMMAND_H
4 #include <gpxe/tables.h>
6 /** A command-line command */
7 struct command {
8 /** Name of the command */
9 const char *name;
10 /**
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 __command __table ( struct command, commands, 01 )
22 #endif /* _GPXE_COMMAND_H */