From e8a896b64d0abb7d85d7aefb6ba551a22f720ffd Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 11 Jan 2013 10:14:10 -0800 Subject: 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 Signed-off-by: Dirk Hohndel --- pref.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pref.h') 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 */ -- cgit v1.2.3-70-g09d2