Content search options can be disabled using "Search for content" checkbox
[midnight-commander.git] / lib / mcconfig.h
blobe2fad45ef420c93be19b7b52486dbc76c4f11765
1 #ifndef MC_CONFIG_H
2 #define MC_CONFIG_H
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 {
13 GKeyFile *handle;
14 gchar *ini_path;
15 } mc_config_t;
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,
41 GError **error);
43 /* mcconfig/get.c: */
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 *);
65 /* mcconfig/set.c: */
67 void
68 mc_config_direct_set_string (mc_config_t *, const gchar *, const gchar *, const gchar *);
70 void
71 mc_config_set_string (mc_config_t *, const gchar *, const gchar *, const gchar *);
73 void
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);
78 void
79 mc_config_set_string_list (mc_config_t *, const gchar *,
80 const gchar *, const gchar * const[], gsize);
82 void
83 mc_config_set_bool_list (mc_config_t *, const gchar *, const gchar *, gboolean[], gsize);
85 void
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);
94 #endif