summaryrefslogtreecommitdiffstats
path: root/src/include/command.h
diff options
context:
space:
mode:
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
+