選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

command.h 394B

123456789101112131415
  1. #ifndef COMMAND_H
  2. #define COMMAND_H
  3. #include <gpxe/tables.h>
  4. struct command {
  5. const char *name; // The name of the command
  6. const char *usage; // Description of how to use the command
  7. const char *desc; // Short description of the command
  8. int ( *exec ) ( int argc, char **argv); // The command function to call
  9. };
  10. #define __command __table ( commands, 01 )
  11. #endif