2 * \brief Header: this is a main module header
8 #include "lib/global.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 /*** enums ***************************************************************************************/
14 /* run mode and params */
30 /*** structures declarations (and typedefs of structures)*****************************************/
34 /*** global variables defined in .c file *********************************************************/
36 extern mc_run_mode_t mc_run_mode
;
38 * MC_RUN_FULL: dir for left panel
39 * MC_RUN_EDITOR: file to edit
40 * MC_RUN_VIEWER: file to view
41 * MC_RUN_DIFFVIEWER: first file to compare
43 extern char *mc_run_param0
;
45 * MC_RUN_FULL: dir for right panel
46 * MC_RUN_EDITOR: unused
47 * MC_RUN_VIEWER: unused
48 * MC_RUN_DIFFVIEWER: second file to compare
50 extern char *mc_run_param1
;
53 /* Set to TRUE to suppress printing the last directory */
54 extern gboolean print_last_revert
;
55 /* If set, then print to the given file the last directory we were at */
56 extern char *last_wd_string
;
58 extern struct mc_fhl_struct
*mc_filehighlight
;
60 extern int use_internal_view
;
61 extern int use_internal_edit
;
64 extern int source_codepage
;
65 extern int default_source_codepage
;
66 extern int display_codepage
;
67 extern char *autodetect_codeset
;
68 extern gboolean is_autodetect_codeset_enabled
;
70 extern int eight_bit_clean
;
71 extern int full_eight_bits
;
72 #endif /* !HAVE_CHARSET */
74 extern int utf8_display
;
76 extern int midnight_shutdown
;
79 extern const char *mc_prompt
;
82 extern char *mc_home_alt
;
84 extern const char *home_dir
;
86 /*** declarations of public functions ************************************************************/
88 #ifdef HAVE_SUBSHELL_SUPPORT
89 int load_prompt (int fd
, void *unused
);
92 int do_cd (const char *new_dir
, enum cd_enum cd_type
);
93 void update_xterm_title_path (void);
95 /*** inline functions ****************************************************************************/
97 #endif /* MC__MAIN_H */