2009-09-01 15:05:01 +04:00
|
|
|
#ifndef MC__ARGS_H
|
|
|
|
#define MC__ARGS_H
|
|
|
|
|
2010-11-09 14:02:28 +03:00
|
|
|
#include "lib/global.h" /* gboolean */
|
2012-01-07 14:35:01 +04:00
|
|
|
#include "lib/vfs/vfs.h" /* vfs_path_t */
|
2010-05-12 10:29:57 +04:00
|
|
|
|
2009-09-01 15:05:01 +04:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
2012-01-07 14:35:01 +04:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
vfs_path_t *file_vpath;
|
2012-08-08 14:12:02 +04:00
|
|
|
long line_number;
|
2012-01-07 14:35:01 +04:00
|
|
|
} mcedit_arg_t;
|
|
|
|
|
2009-09-01 15:05:01 +04:00
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
extern gboolean mc_args__force_xterm;
|
|
|
|
extern gboolean mc_args__nomouse;
|
|
|
|
extern gboolean mc_args__force_colors;
|
2011-02-21 13:49:45 +03:00
|
|
|
extern gboolean mc_args__nokeymap;
|
2009-09-01 15:05:01 +04:00
|
|
|
extern char *mc_args__last_wd_file;
|
|
|
|
extern char *mc_args__netfs_logfile;
|
2009-09-15 16:48:30 +04:00
|
|
|
extern char *mc_args__keymap_file;
|
2009-09-01 15:05:01 +04:00
|
|
|
extern int mc_args__debug_level;
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2012-03-16 11:06:17 +04:00
|
|
|
gboolean mc_args_parse (int *argc, char ***argv, const char *translation_domain, GError ** error);
|
|
|
|
gboolean mc_args_show_info (void);
|
|
|
|
gboolean mc_setup_by_args (int argc, char **argv, GError ** error);
|
2009-09-01 15:05:01 +04:00
|
|
|
|
2012-08-08 14:12:02 +04:00
|
|
|
mcedit_arg_t *mcedit_arg_new (const char *file_name, long line_number);
|
|
|
|
mcedit_arg_t *mcedit_arg_vpath_new (vfs_path_t * file_vpath, long line_number);
|
2012-01-07 14:35:01 +04:00
|
|
|
void mcedit_arg_free (mcedit_arg_t * arg);
|
|
|
|
|
2010-11-09 14:02:28 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
2012-01-07 14:35:01 +04:00
|
|
|
|
2010-05-12 10:29:57 +04:00
|
|
|
#endif /* MC__ARGS_H */
|