diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-22 23:11:23 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-11-23 13:22:24 -0800 |
commit | 70897dd1b7d33f3d1f6b47acc587a7f33a176a04 (patch) | |
tree | d2304bd23c797d558b709dfa20d9a5afef2cd286 /core/divelist.h | |
parent | 68414531adeb68f7ad01c98bbac4d4d950409f02 (diff) | |
download | subsurface-70897dd1b7d33f3d1f6b47acc587a7f33a176a04.tar.gz |
Core: move is-single-day-trip and count-shown functions into core
These functionality was used by the desktop filter. To unify desktop
and mobile, move it into two new functions in divelist.c
Since one of them is the only caller of is_same_day() move that
likewise into divelist.c and make it of static linkage.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r-- | core/divelist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/divelist.h b/core/divelist.h index 26218af05..11fa75f50 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -54,6 +54,8 @@ extern void set_dive_nr_for_current_dive(); extern timestamp_t get_surface_interval(timestamp_t when); extern void delete_dive_from_table(struct dive_table *table, int idx); extern struct dive *find_next_visible_dive(timestamp_t when); +extern bool trip_is_single_day(const struct dive_trip *trip); +extern int trip_shown_dives(const struct dive_trip *trip); int get_min_datafile_version(); void reset_min_datafile_version(); |