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:
jan Iversen 2018-08-13 17:07:30 +02:00 committed by Dirk Hohndel
parent 98ab006211
commit d5b087f01f

View file

@ -44,6 +44,13 @@ enum deco_mode {
VPMB VPMB
}; };
enum def_file_behavior {
UNDEFINED_DEFAULT_FILE,
LOCAL_DEFAULT_FILE,
NO_DEFAULT_FILE,
CLOUD_DEFAULT_FILE
};
typedef struct { typedef struct {
bool dont_check_for_updates; bool dont_check_for_updates;
bool dont_check_exists; bool dont_check_exists;
@ -115,7 +122,7 @@ struct preferences {
int defaultsetpoint; // default setpoint in mbar int defaultsetpoint; // default setpoint in mbar
const char *default_cylinder; const char *default_cylinder;
const char *default_filename; const char *default_filename;
short default_file_behavior; enum def_file_behavior default_file_behavior;
int o2consumption; // ml per min int o2consumption; // ml per min
int pscr_ratio; // dump ratio times 1000 int pscr_ratio; // dump ratio times 1000
bool use_default_file; bool use_default_file;
@ -209,13 +216,6 @@ struct preferences {
update_manager_prefs_t update_manager; 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 struct preferences prefs, default_prefs, git_prefs;
extern const char *system_divelist_default_font; extern const char *system_divelist_default_font;