You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

command.h 444B

12345678910111213141516171819202122
  1. #ifndef _GPXE_COMMAND_H
  2. #define _GPXE_COMMAND_H
  3. #include <gpxe/tables.h>
  4. /** A command-line command */
  5. struct command {
  6. /** Name of the command */
  7. const char *name;
  8. /**
  9. * Function implementing the command
  10. *
  11. * @v argc Argument count
  12. * @v argv Argument list
  13. * @ret rc Return status code
  14. */
  15. int ( * exec ) ( int argc, char **argv );
  16. };
  17. #define __command __table ( struct command, commands, 01 )
  18. #endif /* _GPXE_COMMAND_H */