aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/gpxe/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/gpxe/command.h')
-rw-r--r--gpxe/src/include/gpxe/command.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpxe/src/include/gpxe/command.h b/gpxe/src/include/gpxe/command.h
index 5d8057ab..51ca6d6d 100644
--- a/gpxe/src/include/gpxe/command.h
+++ b/gpxe/src/include/gpxe/command.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_COMMAND_H
#define _GPXE_COMMAND_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
/** A command-line command */
@@ -17,6 +19,8 @@ struct command {
int ( * exec ) ( int argc, char **argv );
};
-#define __command __table ( struct command, commands, 01 )
+#define COMMANDS __table ( struct command, "commands" )
+
+#define __command __table_entry ( COMMANDS, 01 )
#endif /* _GPXE_COMMAND_H */