diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-24 08:27:42 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-24 08:27:42 -0700 |
commit | ba1c4fcec1760748846ff6ad14127409bed0a783 (patch) | |
tree | c0e4b16c620ccfd420459605c1e7e4f5caf8b75f /divelist.h | |
parent | 2a88a72f1aeae6a0dd9713d9c4779d8d009f9335 (diff) | |
download | subsurface-ba1c4fcec1760748846ff6ad14127409bed0a783.tar.gz |
Add some helper functions
First step towards getting the "add to trip" logic in the divelist context
menu to be consistent and correct.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r-- | divelist.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/divelist.h b/divelist.h index ade4ce9a6..57f62fa11 100644 --- a/divelist.h +++ b/divelist.h @@ -30,7 +30,10 @@ extern struct dive *merge_two_dives(struct dive *a, struct dive *b); extern bool consecutive_selected(); extern void select_dive(int idx); extern void deselect_dive(int idx); -void find_new_trip_start_time(dive_trip_t *trip); +extern void find_new_trip_start_time(dive_trip_t *trip); +extern struct dive *first_selected_dive(); +extern struct dive *last_selected_dive(); +extern bool is_trip_before_after(struct dive *dive, bool before); #ifdef DEBUG_TRIP extern void dump_selection(void); |