shell.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** \file shell.h
  2. * \brief Header: shell structure
  3. */
  4. #ifndef MC_SHELL_H
  5. #define MC_SHELL_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. /*** enums ***************************************************************************************/
  8. typedef enum
  9. {
  10. SHELL_NONE,
  11. SHELL_SH,
  12. SHELL_BASH,
  13. SHELL_ASH_BUSYBOX, /* BusyBox default shell (ash) */
  14. SHELL_DASH, /* Debian variant of ash */
  15. SHELL_TCSH,
  16. SHELL_ZSH,
  17. SHELL_FISH
  18. } shell_type_t;
  19. /*** structures declarations (and typedefs of structures)*****************************************/
  20. typedef struct
  21. {
  22. shell_type_t type;
  23. const char *name;
  24. char *path;
  25. char *real_path;
  26. } mc_shell_t;
  27. /*** global variables defined in .c file *********************************************************/
  28. /*** declarations of public functions ************************************************************/
  29. void mc_shell_init (void);
  30. void mc_shell_deinit (void);
  31. /*** inline functions **************************************************/
  32. #endif /* MC_SHELL_H */