aboutsummaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 06:45:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 06:45:12 -0700
commitde35c886837016c80fc65043d8a2f0b373efec5b (patch)
tree87eaf634a88f557d88d9580d5b5ad759f9e1ceeb /divelist.h
parent70d4421cd0ab235ee4f37ed7f8b6ad863da703bb (diff)
downloadsubsurface-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 'divelist.h')
-rw-r--r--divelist.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/divelist.h b/divelist.h
index 91318c3b1..04f26f68a 100644
--- a/divelist.h
+++ b/divelist.h
@@ -5,6 +5,9 @@
extern "C" {
#endif
+/* this is used for both git and xml format */
+#define DATAFORMAT_VERSION 3
+
struct dive;
extern void update_cylinder_related_info(struct dive *);
@@ -41,6 +44,10 @@ extern struct dive *last_selected_dive();
extern bool is_trip_before_after(struct dive *dive, bool before);
extern void set_dive_nr_for_current_dive();
+int get_min_datafile_version();
+void reset_min_datafile_version();
+void report_datafile_version(int version);
+
#ifdef DEBUG_TRIP
extern void dump_selection(void);
extern void dump_trip_list(void);