1 #ifndef MC__ARGS_H 2 #define MC__ARGS_H 3 4 #include "lib/global.h" /* gboolean */ 5 #include "lib/vfs/vfs.h" /* vfs_path_t */ 6 7 /*** typedefs(not structures) and defined constants **********************************************/ 8 9 /*** enums ***************************************************************************************/ 10 11 /*** structures declarations (and typedefs of structures)*****************************************/ 12 13 /*** global variables defined in .c file *********************************************************/ 14 15 extern gboolean mc_args__force_xterm; 16 extern gboolean mc_args__nomouse; 17 extern gboolean mc_args__force_colors; 18 extern gboolean mc_args__nokeymap; 19 extern char *mc_args__last_wd_file; 20 extern char *mc_args__netfs_logfile; 21 extern char *mc_args__keymap_file; 22 23 /* 24 * MC_RUN_FULL: dir for left panel 25 * MC_RUN_EDITOR: list of files to edit 26 * MC_RUN_VIEWER: file to view 27 * MC_RUN_DIFFVIEWER: first file to compare 28 */ 29 extern void *mc_run_param0; 30 /* 31 * MC_RUN_FULL: dir for right panel 32 * MC_RUN_EDITOR: unused 33 * MC_RUN_VIEWER: unused 34 * MC_RUN_DIFFVIEWER: second file to compare 35 */ 36 extern char *mc_run_param1; 37 38 /*** declarations of public functions ************************************************************/ 39 40 void mc_setup_run_mode (char **argv); 41 gboolean mc_args_parse (int *argc, char ***argv, const char *translation_domain, GError ** mcerror); 42 gboolean mc_args_show_info (void); 43 gboolean mc_setup_by_args (int argc, char **argv, GError ** mcerror); 44 45 /*** inline functions ****************************************************************************/ 46 47 #endif /* MC__ARGS_H */