mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
core: change default_file_behavior from short to enum
change to enum as it really is Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
98ab006211
commit
d5b087f01f
1 changed files with 8 additions and 8 deletions
16
core/pref.h
16
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;
|
||||
|
|
Loading…
Reference in a new issue