diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-20 06:45:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-20 06:45:12 -0700 |
commit | de35c886837016c80fc65043d8a2f0b373efec5b (patch) | |
tree | 87eaf634a88f557d88d9580d5b5ad759f9e1ceeb /parse-xml.c | |
parent | 70d4421cd0ab235ee4f37ed7f8b6ad863da703bb (diff) | |
download | subsurface-de35c886837016c80fc65043d8a2f0b373efec5b.tar.gz |
Track minimum datafile version
Add infrastructure and helper functions to track minimum datafile version.
To make this information useful we need to keep the XML and git data
format versions in track moving forward.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index aaf8651c0..0e8e3a556 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -16,6 +16,7 @@ #include "gettext.h" #include "dive.h" +#include "divelist.h" #include "device.h" #include "membuffer.h" @@ -1715,6 +1716,7 @@ static bool entry(const char *name, char *buf) if (!strncmp(name, "version.program", sizeof("version.program") - 1) || !strncmp(name, "version.divelog", sizeof("version.divelog") - 1)) { last_xml_version = atoi(buf); + report_datafile_version(last_xml_version); } if (in_userid) { try_to_fill_userid(name, buf); |