summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-11 10:14:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-11 12:19:34 -0800
commite8a896b64d0abb7d85d7aefb6ba551a22f720ffd (patch)
tree19213a00a86d7c88a887d4a5a28c9218b0498e8f /pref.h
parentc4ae58d589bdf315223c41716ca4b0ae747a8498 (diff)
downloadsubsurface-e8a896b64d0abb7d85d7aefb6ba551a22f720ffd.tar.gz
Update preference saving for numeric values
This does the "don't save defaults" for numeric values too. Also, move the preferences loading/saving to a new "prefs.c" file. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index 1804b3e5d..18a648032 100644
--- a/pref.h
+++ b/pref.h
@@ -45,4 +45,10 @@ extern int subsurface_get_conf_bool(char *name);
extern void subsurface_flush_conf(void);
extern void subsurface_close_conf(void);
+/* Misc preferences - should we have defaults for these too? */
+extern const char *divelist_font;
+
+extern void load_preferences(void);
+extern void save_preferences(void);
+
#endif /* PREF_H */