Merge branch '4292_autocomplete_slashes'
[midnight-commander.git] / src / args.h
blob4aa59f40a2fd431fac03db466f8b22800828a526
1 #ifndef MC__ARGS_H
2 #define MC__ARGS_H
4 #include "lib/global.h" /* gboolean */
5 #include "lib/vfs/vfs.h" /* vfs_path_t */
7 /*** typedefs(not structures) and defined constants **********************************************/
9 /*** enums ***************************************************************************************/
11 /*** structures declarations (and typedefs of structures)*****************************************/
13 /*** global variables defined in .c file *********************************************************/
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;
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
29 extern void *mc_run_param0;
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
36 extern char *mc_run_param1;
38 /*** declarations of public functions ************************************************************/
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);
45 /*** inline functions ****************************************************************************/
47 #endif /* MC__ARGS_H */