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
{
17 /*** global variables defined in .c file *******************************/
19 extern mc_config_t
*mc_main_config
;
20 extern mc_config_t
*mc_panels_config
;
22 /*** 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
,
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
*);
68 mc_config_direct_set_string (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
71 mc_config_set_string (mc_config_t
*, const gchar
*, const gchar
*, const gchar
*);
74 mc_config_set_bool (mc_config_t
*, const gchar
*, const gchar
*, gboolean
);
76 void mc_config_set_int (mc_config_t
*, const gchar
*, const gchar
*, int);
79 mc_config_set_string_list (mc_config_t
*, const gchar
*,
80 const gchar
*, const gchar
* const[], gsize
);
83 mc_config_set_bool_list (mc_config_t
*, const gchar
*, const gchar
*, gboolean
[], gsize
);
86 mc_config_set_int_list (mc_config_t
*, const gchar
*, const gchar
*, int[], gsize
);
89 /* mcconfig/dialog.c: */
91 void mc_config_show_dialog (void);