summaryrefslogtreecommitdiffstats
path: root/src/include/command.h
diff options
context:
space:
mode:
authorMarty Connor2006-08-09 04:30:35 +0200
committerMarty Connor2006-08-09 04:30:35 +0200
commit41af7457a8c731ed358f70ae3c78983893ae84ad (patch)
tree1049f7efa4a666efb7905e135ce4b0e90393a2fb /src/include/command.h
parentAdd a couple of small but vital parts to PXENV_UDP_WRITE. (diff)
downloadipxe-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.h15
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
+