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.

shell.h 729B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _IPXE_SHELL_H
  2. #define _IPXE_SHELL_H
  3. /** @file
  4. *
  5. * Minimal command shell
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. /** Shell stop states */
  10. enum shell_stop_state {
  11. /** Continue processing */
  12. SHELL_CONTINUE = 0,
  13. /**
  14. * Stop processing current command line
  15. *
  16. * This is the stop state entered by commands that change the flow
  17. * of execution, such as "goto".
  18. */
  19. SHELL_STOP_COMMAND = 1,
  20. /**
  21. * Stop processing commands
  22. *
  23. * This is the stop state entered by commands that terminate
  24. * the flow of execution, such as "exit".
  25. */
  26. SHELL_STOP_COMMAND_SEQUENCE = 2,
  27. };
  28. extern void shell_stop ( int stop );
  29. extern int shell_stopped ( int stop );
  30. extern int shell ( void );
  31. #endif /* _IPXE_SHELL_H */