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