mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
70d4421cd0
commit
de35c88683
7 changed files with 40 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue