summaryrefslogtreecommitdiffstats
path: root/pref.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-01 12:32:46 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-01 12:38:40 -0700
commita413141b334e89b0c9944bc403b8774f85427509 (patch)
tree323df09d9fa03984b3ce17340fb408633df46db5 /pref.h
parentf7b7d4c2df7fb82421588c69b3aa34e702dcbfdb (diff)
downloadsubsurface-a413141b334e89b0c9944bc403b8774f85427509.tar.gz
Geo taxonomy: adjust the preferences to the new data structures
This allows us to pick which three categories of geo taxonomy will be shown in the UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'pref.h')
-rw-r--r--pref.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/pref.h b/pref.h
index 03b28a98c..0470d0e3b 100644
--- a/pref.h
+++ b/pref.h
@@ -6,6 +6,7 @@ extern "C" {
#endif
#include "units.h"
+#include "taxonomy.h"
/* can't use 'bool' for the boolean values - different size in C and C++ */
typedef struct
@@ -28,9 +29,7 @@ typedef struct {
bool enable_geocoding;
bool parse_dive_without_gps;
bool tag_existing_dives;
- char *first_item;
- char *second_item;
- char *third_item;
+ enum taxonomy_category category[3];
} geocoding_prefs_t;
struct preferences {