diff options
| author | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2026-01-28 12:53:53 +0100 |
| commit | 8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch) | |
| tree | a8b359e59196be5b2e3862bed189107f4bc9975f /src/include/ipxe/command.h | |
| parent | Merge branch 'master' into openslx (diff) | |
| parent | [prefix] Make unlzma.S compatible with 386 class CPUs (diff) | |
| download | ipxe-openslx.tar.gz ipxe-openslx.tar.xz ipxe-openslx.zip | |
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/include/ipxe/command.h')
| -rw-r--r-- | src/include/ipxe/command.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/ipxe/command.h b/src/include/ipxe/command.h index a208e7d8f..cbd5fb665 100644 --- a/src/include/ipxe/command.h +++ b/src/include/ipxe/command.h @@ -2,6 +2,7 @@ #define _IPXE_COMMAND_H FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +FILE_SECBOOT ( PERMITTED ); #include <ipxe/tables.h> @@ -21,7 +22,12 @@ struct command { #define COMMANDS __table ( struct command, "commands" ) -#define __command __table_entry ( COMMANDS, 01 ) +#define __command( name ) __table_entry ( COMMANDS, _C2 ( 01., name ) ) + +#define COMMAND( name, exec ) \ + struct command name ## _command __command ( name ) = { \ + #name, exec \ + } extern char * concat_args ( char **args ); |
