core: remove typedefs in pref.h

Some compilers whine when using typedefs with non-C structs with
default initializers. Not yet the case here, but in the future
probably will. So remove them now. No point in C++ anyway.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-05-14 23:04:03 +02:00 committed by bstoeger
parent eac11683a9
commit bfb54aa581

View file

@ -5,8 +5,7 @@
#include "units.h" #include "units.h"
#include "taxonomy.h" #include "taxonomy.h"
typedef struct struct partial_pressure_graphs_t {
{
bool po2; bool po2;
bool pn2; bool pn2;
bool phe; bool phe;
@ -14,17 +13,17 @@ typedef struct
double po2_threshold_max; double po2_threshold_max;
double pn2_threshold; double pn2_threshold;
double phe_threshold; double phe_threshold;
} partial_pressure_graphs_t; };
typedef struct { struct geocoding_prefs_t {
enum taxonomy_category category[3]; enum taxonomy_category category[3];
} geocoding_prefs_t; };
typedef struct { struct locale_prefs_t {
const char *language; const char *language;
const char *lang_locale; const char *lang_locale;
bool use_system_language; bool use_system_language;
} locale_prefs_t; };
enum deco_mode { enum deco_mode {
BUEHLMANN, BUEHLMANN,
@ -39,18 +38,18 @@ enum def_file_behavior {
CLOUD_DEFAULT_FILE CLOUD_DEFAULT_FILE
}; };
typedef struct { struct update_manager_prefs_t {
bool dont_check_for_updates; bool dont_check_for_updates;
const char *last_version_used; const char *last_version_used;
int next_check; int next_check;
} update_manager_prefs_t; };
typedef struct { struct dive_computer_prefs_t {
const char *vendor; const char *vendor;
const char *product; const char *product;
const char *device; const char *device;
const char *device_name; const char *device_name;
} dive_computer_prefs_t; };
// NOTE: these enums are duplicated in mobile-widgets/qmlinterface.h // NOTE: these enums are duplicated in mobile-widgets/qmlinterface.h
enum unit_system_values { enum unit_system_values {