aboutsummaryrefslogtreecommitdiffstats
path: root/divesite.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-24 11:07:57 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-25 10:43:52 -0700
commit420afeef570cd4989dac60ac6376929ca1cc9a03 (patch)
tree81f0d9277902540c52789eb32cfdd672effd59a6 /divesite.h
parente03b553e80a00b07757f51f7866bc666b807dce8 (diff)
downloadsubsurface-420afeef570cd4989dac60ac6376929ca1cc9a03.tar.gz
Save XML: sort the dive sites by uuid
This makes it much easier to compare XML files written by Subsurface. The order of the dive_site_table depended on the order in which they were encountered. This makes it easier to eye-ball changes in XML files. And allows the GitStorage test to pass. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r--divesite.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h
index 1dd1d04e8..52901e9b4 100644
--- a/divesite.h
+++ b/divesite.h
@@ -49,6 +49,7 @@ static inline struct dive_site *get_dive_site_by_uuid(uint32_t uuid)
return NULL;
}
+void dive_site_table_sort();
struct dive_site *alloc_dive_site(uint32_t uuid);
int nr_of_dives_at_dive_site(uint32_t uuid, bool select_only);
bool is_dive_site_used(uint32_t uuid, bool select_only);