Merge branch '2825_solaris_statvfs_members'
[midnight-commander.git] / src / args.h
blobfe0e64d77bd0458af6e54847bf3d4cd4129191df
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 typedef struct
15 vfs_path_t *file_vpath;
16 int line_number;
17 } mcedit_arg_t;
19 /*** global variables defined in .c file *********************************************************/
21 extern gboolean mc_args__force_xterm;
22 extern gboolean mc_args__nomouse;
23 extern gboolean mc_args__force_colors;
24 extern gboolean mc_args__nokeymap;
25 extern char *mc_args__last_wd_file;
26 extern char *mc_args__netfs_logfile;
27 extern char *mc_args__keymap_file;
28 extern int mc_args__debug_level;
30 /*** declarations of public functions ************************************************************/
32 gboolean mc_args_parse (int *argc, char ***argv, const char *translation_domain, GError ** error);
33 gboolean mc_args_show_info (void);
34 gboolean mc_setup_by_args (int argc, char **argv, GError ** error);
36 mcedit_arg_t *mcedit_arg_new (const char *file_name, int line_number);
37 mcedit_arg_t *mcedit_arg_vpath_new (vfs_path_t * file_vpath, int line_number);
38 void mcedit_arg_free (mcedit_arg_t * arg);
40 /*** inline functions ****************************************************************************/
42 #endif /* MC__ARGS_H */