Merge of Fredrik Hultin command_line
[people/xl0/gpxe.git] / src / include / command.h
1 #ifndef COMMAND_H
2 #define COMMAND_H
3
4 #include <gpxe/tables.h>
5
6 struct command {
7         const char *name;                                               // The name of the command
8         const char *usage;                                              // Description of how to use the command
9         const char *desc;                                               // Short description of the command
10         int ( *exec ) ( int argc, char **argv);                         // The command function to call
11 };
12
13 #define __command __table ( commands, 01 )
14 #endif
15