diff options
-rw-r--r-- | core/parse.c | 2 | ||||
-rw-r--r-- | core/parse.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/core/parse.c b/core/parse.c index 5743be3c6..48e62c2e0 100644 --- a/core/parse.c +++ b/core/parse.c @@ -16,7 +16,7 @@ int metric = 1; int diveid = -1; event_allocation_t event_allocation = { .event.deleted = 1 }; - +struct parser_settings cur_settings; struct divecomputer *cur_dc = NULL; struct dive *cur_dive = NULL; diff --git a/core/parse.h b/core/parse.h index 259cf5aaa..affffcfb0 100644 --- a/core/parse.h +++ b/core/parse.h @@ -24,13 +24,14 @@ extern struct sample *cur_sample; extern struct picture *cur_picture; -struct { +struct parser_settings { struct { const char *model; uint32_t deviceid; const char *nickname, *serial_nr, *firmware; } dc; -} cur_settings; +}; +extern struct parser_settings cur_settings; extern bool in_settings; extern bool in_userid; |