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>
This commit is contained in:
Berthold Stoeger 2019-12-12 22:58:53 +01:00 committed by Dirk Hohndel
parent ef821d7d94
commit 329641fdcd
5 changed files with 14 additions and 1 deletions

View file

@ -442,6 +442,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b)
if (surface_pressure.mbar)
SAVE("airpressure", surface_pressure.mbar);
cond_put_format(dive->notrip, b, "notrip\n");
cond_put_format(dive->invalid, b, "invalid\n");
save_tags(b, dive->tag_list);
if (dive->dive_site)
put_format(b, "divesiteid %08x\n", dive->dive_site->uuid);