root/src/args.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   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 typedef struct
  14 {
  15     vfs_path_t *file_vpath;
  16     long line_number;
  17 } mcedit_arg_t;
  18 
  19 /*** global variables defined in .c file *********************************************************/
  20 
  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 
  29 /*
  30  * MC_RUN_FULL: dir for left panel
  31  * MC_RUN_EDITOR: list of files to edit
  32  * MC_RUN_VIEWER: file to view
  33  * MC_RUN_DIFFVIEWER: first file to compare
  34  */
  35 extern void *mc_run_param0;
  36 /*
  37  * MC_RUN_FULL: dir for right panel
  38  * MC_RUN_EDITOR: unused
  39  * MC_RUN_VIEWER: unused
  40  * MC_RUN_DIFFVIEWER: second file to compare
  41  */
  42 extern char *mc_run_param1;
  43 
  44 /*** declarations of public functions ************************************************************/
  45 
  46 void mc_setup_run_mode (char **argv);
  47 gboolean mc_args_parse (int *argc, char ***argv, const char *translation_domain, GError ** mcerror);
  48 gboolean mc_args_show_info (void);
  49 gboolean mc_setup_by_args (int argc, char **argv, GError ** mcerror);
  50 
  51 void mcedit_arg_free (mcedit_arg_t * arg);
  52 
  53 /*** inline functions ****************************************************************************/
  54 
  55 #endif /* MC__ARGS_H */

/* [previous][next][first][last][top][bottom][index][help]  */