diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-12-12 22:58:53 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-20 15:20:44 -0700 |
commit | 329641fdcdf7759d430aea2d2a115550bc5caf62 (patch) | |
tree | 45e4e272f86c2f1429b3c9fff4e9f435bf9392a7 /core/load-git.c | |
parent | ef821d7d94bbc69337c36f26a25d819e340b14f5 (diff) | |
download | subsurface-329641fdcdf7759d430aea2d2a115550bc5caf62.tar.gz |
Core: introduce invalid flag for dives
Implement reading/writing the flag from/to XML/git.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 9 |
1 files changed, 8 insertions, 1 deletions
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) }; |