summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-26 14:42:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-11 16:22:27 -0700
commitf836b9ae97bc8109e1acdd1859bd41a5dc53f7f3 (patch)
treed7e0ce6ca0265ebf01103273384a4594f99e0838 /core/dive.h
parent0cca36377b01fc10063ecc67f5471ce80d133991 (diff)
downloadsubsurface-f836b9ae97bc8109e1acdd1859bd41a5dc53f7f3.tar.gz
Dive list: unify sorting in core and Qt-model
Ultimately, we want to use a single dive-list and not replicate it in the Qt-model code. To this goal, let's start with using the same sort function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index cb832a44d..da856cc0f 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -563,6 +563,7 @@ extern struct sample *add_sample(const struct sample *sample, int time, struct d
extern void add_sample_pressure(struct sample *sample, int sensor, int mbar);
extern int legacy_format_o2pressures(const struct dive *dive, const struct divecomputer *dc);
+extern bool dive_less_than(const struct dive *a, const struct dive *b);
extern void sort_table(struct dive_table *table);
extern struct dive *fixup_dive(struct dive *dive);
extern void fixup_dc_duration(struct divecomputer *dc);