4 /*** typedefs(not structures) and defined constants ********************/
6 #define CONFIG_APP_SECTION "Midnight-Commander"
8 /*** enums *************************************************************/
10 /*** structures declarations (and typedefs of structures)***************/
12 typedef struct mc_config_struct
18 /*** global variables defined in .c file *******************************/
20 extern mc_config_t
*mc_main_config
;
21 extern mc_config_t
*mc_panels_config
;
23 /*** declarations of public functions **********************************/
25 /* mcconfig/common.c: */
27 mc_config_t
*mc_config_init (const gchar
*);
28 void mc_config_deinit (mc_config_t
*);
30 gboolean
mc_config_del_param (mc_config_t
*, const char *, const gchar
*);
31 gboolean
mc_config_del_group (mc_config_t
*, const char *);
33 gboolean
mc_config_has_param (mc_config_t
*, const char *, const gchar
*);
34 gboolean
mc_config_has_group (mc_config_t
*, const char *);
36 gboolean
mc_config_read_file (mc_config_t
*, const gchar
*);
38 gboolean
mc_config_save_file (mc_config_t
* config
, GError
** error
);
40 gboolean
mc_config_save_to_file (mc_config_t
* config
, const gchar
* filename
, GError
** error
);
45 gchar
**mc_config_get_groups (mc_config_t
*, gsize
*);
47 gchar
**mc_config_get_keys (mc_config_t
*, const gchar
*, gsize
*);
49 gchar
*mc_config_get_string (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
51 gchar
*mc_config_get_string_raw (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
53 gboolean
mc_config_get_bool (mc_config_t
*, const gchar
*, const gchar
*, gboolean
);
55 int mc_config_get_int (mc_config_t
*, const gchar
*, const gchar
*, int);
58 gchar
**mc_config_get_string_list (mc_config_t
*, const gchar
*, const gchar
*, gsize
*);
60 gboolean
*mc_config_get_bool_list (mc_config_t
*, const gchar
*, const gchar
*, gsize
*);
62 int *mc_config_get_int_list (mc_config_t
*, const gchar
*, const gchar
*, gsize
*);
67 void mc_config_set_string_raw (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
69 void mc_config_set_string (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
71 void mc_config_set_bool (mc_config_t
*, const gchar
*, const gchar
*, gboolean
);
73 void mc_config_set_int (mc_config_t
*, const gchar
*, const gchar
*, int);
76 mc_config_set_string_list (mc_config_t
*, const gchar
*,
77 const gchar
*, const gchar
* const[], gsize
);
79 void mc_config_set_bool_list (mc_config_t
*, const gchar
*, const gchar
*, gboolean
[], gsize
);
81 void mc_config_set_int_list (mc_config_t
*, const gchar
*, const gchar
*, int[], gsize
);
84 /* mcconfig/dialog.c: */
86 void mc_config_show_dialog (void);