From 825fcc854788750d0d1afc4a6d1cdae9e85e738e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 24 Nov 2018 07:50:13 +0100 Subject: Dive list: add table parameter to autogroup_dives() Currently autogroup_dives() groups all dives in the global dive list. Add a table parameter so that dives in any table can be grouped. Thus it will be possible to pre-group dives on import, which will be used for undo of import. Signed-off-by: Berthold Stoeger --- core/divelist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/divelist.h') diff --git a/core/divelist.h b/core/divelist.h index c276c941a..620de42d8 100644 --- a/core/divelist.h +++ b/core/divelist.h @@ -33,7 +33,7 @@ extern void remove_dive_from_trip(struct dive *dive); extern dive_trip_t *alloc_trip(void); extern dive_trip_t *create_trip_from_dive(struct dive *dive); extern dive_trip_t *create_and_hookup_trip_from_dive(struct dive *dive); -extern dive_trip_t *get_dives_to_autogroup(int start, int *from, int *to, bool *allocated); +extern dive_trip_t *get_dives_to_autogroup(struct dive_table *table, int start, int *from, int *to, bool *allocated); extern dive_trip_t *get_trip_for_new_dive(struct dive *new_dive, bool *allocated); extern bool consecutive_selected(); extern void select_dive(struct dive *dive); -- cgit v1.2.3-70-g09d2