diff options
| author | Marty Connor | 2006-08-09 04:30:35 +0200 |
|---|---|---|
| committer | Marty Connor | 2006-08-09 04:30:35 +0200 |
| commit | 41af7457a8c731ed358f70ae3c78983893ae84ad (patch) | |
| tree | 1049f7efa4a666efb7905e135ce4b0e90393a2fb /src/include/command.h | |
| parent | Add a couple of small but vital parts to PXENV_UDP_WRITE. (diff) | |
| download | ipxe-41af7457a8c731ed358f70ae3c78983893ae84ad.tar.gz ipxe-41af7457a8c731ed358f70ae3c78983893ae84ad.tar.xz ipxe-41af7457a8c731ed358f70ae3c78983893ae84ad.zip | |
Merge of Fredrik Hultin command_line
Diffstat (limited to 'src/include/command.h')
| -rw-r--r-- | src/include/command.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/command.h b/src/include/command.h new file mode 100644 index 000000000..113ca2f0a --- /dev/null +++ b/src/include/command.h @@ -0,0 +1,15 @@ +#ifndef COMMAND_H +#define COMMAND_H + +#include <gpxe/tables.h> + +struct command { + const char *name; // The name of the command + const char *usage; // Description of how to use the command + const char *desc; // Short description of the command + int ( *exec ) ( int argc, char **argv); // The command function to call +}; + +#define __command __table ( commands, 01 ) +#endif + |
