summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/pref.h b/pref.h
index ddc2eaff0..1804b3e5d 100644
--- a/pref.h
+++ b/pref.h
@@ -36,18 +36,12 @@ extern struct preferences prefs, default_prefs;
#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
-typedef enum {
- PREF_BOOL,
- PREF_STRING
-} pref_type_t;
-
-#define BOOL_TO_PTR(_cond) ((_cond) ? (void *)1 : NULL)
-#define PTR_TO_BOOL(_ptr) ((_ptr) != NULL)
-
extern void subsurface_open_conf(void);
-extern void subsurface_set_conf(char *name, pref_type_t type, const void *value);
+extern void subsurface_set_conf(char *name, const char *value);
+extern void subsurface_set_conf_bool(char *name, gboolean value);
extern void subsurface_unset_conf(char *name);
-extern const void *subsurface_get_conf(char *name, pref_type_t type);
+extern const void *subsurface_get_conf(char *name);
+extern int subsurface_get_conf_bool(char *name);
extern void subsurface_flush_conf(void);
extern void subsurface_close_conf(void);