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