summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2015-02-08 11:35:50 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-15 06:03:13 -0800
commit4a146f9e57bf63c3555ebc048acc2012229fe08a (patch)
tree7c03284d1e737386bca93321ddff6b0222d1b445 /pref.h
parent3521cdcbd6bb2e282249286afe16b066e4af30e8 (diff)
downloadsubsurface-4a146f9e57bf63c3555ebc048acc2012229fe08a.tar.gz
Add 'system_default_directory()' helper function
This is just a extern "C" wrapper around QStandardPaths::AppDataLocation, while also making sure the entry exists. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pref.h b/pref.h
index 8804ce260..c33b55438 100644
--- a/pref.h
+++ b/pref.h
@@ -94,6 +94,8 @@ extern struct preferences prefs, default_prefs;
extern const char *system_divelist_default_font;
extern double system_divelist_default_font_size;
+
+extern const char *system_default_directory(void);
extern const char *system_default_filename();
extern bool subsurface_ignore_font(const char *font);
extern void subsurface_OS_pref_setup();