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 --- divelist.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'divelist.h') 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); -- cgit v1.2.3-70-g09d2