aboutsummaryrefslogtreecommitdiffstats
path: root/core/divelist.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-24 07:50:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:58:04 -0800
commit825fcc854788750d0d1afc4a6d1cdae9e85e738e (patch)
tree0f3a1b4dce0e39d559e547fb7a27ab7e9dc7a8fa /core/divelist.h
parentf8327ed51bc2298e2c7ef69a1ef0f82509e8d8d4 (diff)
downloadsubsurface-825fcc854788750d0d1afc4a6d1cdae9e85e738e.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.h')
-rw-r--r--core/divelist.h2
1 files changed, 1 insertions, 1 deletions
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);