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