From de35c886837016c80fc65043d8a2f0b373efec5b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 20 Jun 2015 06:45:12 -0700 Subject: 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 --- parse-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parse-xml.c') 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); -- cgit v1.2.3-70-g09d2