2015-11-10 17:23:09 +03:00
|
|
|
/** \file timer.h
|
|
|
|
* \brief Header: shell structure
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MC_SHELL_H
|
|
|
|
#define MC_SHELL_H
|
|
|
|
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2015-11-11 15:43:11 +03:00
|
|
|
SHELL_NONE,
|
|
|
|
SHELL_SH,
|
|
|
|
SHELL_BASH,
|
|
|
|
SHELL_ASH_BUSYBOX, /* BusyBox default shell (ash) */
|
|
|
|
SHELL_DASH, /* Debian variant of ash */
|
|
|
|
SHELL_TCSH,
|
|
|
|
SHELL_ZSH,
|
|
|
|
SHELL_FISH
|
2015-11-10 17:23:09 +03:00
|
|
|
} shell_type_t;
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
shell_type_t type;
|
|
|
|
const char *name;
|
|
|
|
char *path;
|
|
|
|
char *real_path;
|
|
|
|
} mc_shell_t;
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2015-11-11 15:43:11 +03:00
|
|
|
void mc_shell_init (void);
|
|
|
|
void mc_shell_deinit (void);
|
|
|
|
|
2015-11-10 17:23:09 +03:00
|
|
|
/*** inline functions **************************************************/
|
|
|
|
|
|
|
|
#endif /* MC_SHELL_H */
|