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>
This commit is contained in:
Dirk Hohndel 2015-07-01 12:32:46 -07:00
parent f7b7d4c2df
commit a413141b33
4 changed files with 22 additions and 16 deletions

5
pref.h
View file

@ -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 {