diff options
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index 7356f91a1..76f01a8c0 100644 --- a/core/dive.h +++ b/core/dive.h @@ -338,6 +338,12 @@ struct dive { unsigned char git_id[20]; }; +/* For the top-level list: an entry is either a dive or a trip */ +struct dive_or_trip { + struct dive *dive; + struct dive_trip *trip; +}; + extern void invalidate_dive_cache(struct dive *dive); extern bool dive_cache_is_valid(const struct dive *dive); @@ -557,6 +563,7 @@ extern int legacy_format_o2pressures(const struct dive *dive, const struct divec extern bool dive_less_than(const struct dive *a, const struct dive *b); extern bool trip_less_than(const struct dive_trip *a, const struct dive_trip *b); +extern bool dive_or_trip_less_than(struct dive_or_trip a, struct dive_or_trip 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); |