diff options
author | willemferguson <willemferguson@zoology.up.ac.za> | 2019-11-19 19:16:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 07:00:34 +0900 |
commit | d2cf58e07e64b4e1e6a81f07c2efce38c55be78b (patch) | |
tree | 1b0ad636f59da7600f4a38a819f8ddd5d03fc437 /core/load-git.c | |
parent | ebabbfb457184ea4d9e939ad8501986c35699264 (diff) | |
download | subsurface-d2cf58e07e64b4e1e6a81f07c2efce38c55be78b.tar.gz |
core: read and write the user-specified salinity
Both XML and git storage are added.
Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c index c9c195ca6..add7afe8c 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -285,6 +285,9 @@ static void parse_dive_surge(char *line, struct membuffer *str, struct git_parse static void parse_dive_chill(char *line, struct membuffer *str, struct git_parser_state *state) { UNUSED(str); state->active_dive->chill = get_index(line); } +static void parse_dive_watersalinity(char *line, struct membuffer *str, struct git_parser_state *state) +{ UNUSED(str); state->active_dive->user_salinity = get_salinity(line); } + static void parse_dive_notrip(char *line, struct membuffer *str, struct git_parser_state *state) { UNUSED(str); @@ -1001,7 +1004,7 @@ struct keyword_action dive_action[] = { #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(tags), D(visibility), D(watertemp), D(wavesize), D(weightsystem) + D(tags), D(visibility), D(watersalinity), D(watertemp), D(wavesize), D(weightsystem) }; static void dive_parser(char *line, struct membuffer *str, struct git_parser_state *state) |