summaryrefslogtreecommitdiffstats
path: root/core/pref.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-13 17:07:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-14 09:09:06 -0700
commitd5b087f01f89508f2e49c67a8d662662a93cf620 (patch)
treea332e0e43f8eda1fb0c56c47f1703bd6b91c9a49 /core/pref.h
parent98ab0062118788e8394f73464e3d5f1362608806 (diff)
downloadsubsurface-d5b087f01f89508f2e49c67a8d662662a93cf620.tar.gz
core: change default_file_behavior from short to enum
change to enum as it really is Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/pref.h')
-rw-r--r--core/pref.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/pref.h b/core/pref.h
index f317a795c..d7a7432a4 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -44,6 +44,13 @@ enum deco_mode {
VPMB
};
+enum def_file_behavior {
+ UNDEFINED_DEFAULT_FILE,
+ LOCAL_DEFAULT_FILE,
+ NO_DEFAULT_FILE,
+ CLOUD_DEFAULT_FILE
+};
+
typedef struct {
bool dont_check_for_updates;
bool dont_check_exists;
@@ -115,7 +122,7 @@ struct preferences {
int defaultsetpoint; // default setpoint in mbar
const char *default_cylinder;
const char *default_filename;
- short default_file_behavior;
+ enum def_file_behavior default_file_behavior;
int o2consumption; // ml per min
int pscr_ratio; // dump ratio times 1000
bool use_default_file;
@@ -209,13 +216,6 @@ struct preferences {
update_manager_prefs_t update_manager;
};
-enum def_file_behavior {
- UNDEFINED_DEFAULT_FILE,
- LOCAL_DEFAULT_FILE,
- NO_DEFAULT_FILE,
- CLOUD_DEFAULT_FILE
-};
-
extern struct preferences prefs, default_prefs, git_prefs;
extern const char *system_divelist_default_font;