From 329641fdcdf7759d430aea2d2a115550bc5caf62 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 12 Dec 2019 22:58:53 +0100 Subject: Core: introduce invalid flag for dives Implement reading/writing the flag from/to XML/git. Signed-off-by: Berthold Stoeger --- core/load-git.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/load-git.c') diff --git a/core/load-git.c b/core/load-git.c index a9e9107f7..f01fe72a0 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -283,6 +283,13 @@ static void parse_dive_notrip(char *line, struct membuffer *str, struct git_pars state->active_dive->notrip = true; } +static void parse_dive_invalid(char *line, struct membuffer *str, struct git_parser_state *state) +{ + UNUSED(str); + UNUSED(line); + state->active_dive->invalid = true; +} + static void parse_site_description(char *line, struct membuffer *str, struct git_parser_state *state) { UNUSED(line); state->active_site->description = detach_cstring(str); } @@ -1039,7 +1046,7 @@ struct keyword_action dive_action[] = { #undef D #define D(x) { #x, parse_dive_ ## x } D(airpressure), D(airtemp), D(buddy), D(chill), D(current), D(cylinder), D(divemaster), D(divesiteid), D(duration), - D(gps), D(location), D(notes), D(notrip), D(rating), D(suit), D(surge), + D(gps), D(invalid), D(location), D(notes), D(notrip), D(rating), D(suit), D(surge), D(tags), D(visibility), D(watersalinity), D(watertemp), D(wavesize), D(weightsystem) }; -- cgit v1.2.3-70-g09d2