aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-26 23:39:37 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:58:04 -0800
commitec37c71f5eeb7d4b0c4b8719b52583fadb0b8f4c (patch)
treeb1af183d2fb5c827e940591b90547390eb70c31b /core/dive.h
parent7df8d8c888cb8e1cdb12a171a4715c8f5af7c80d (diff)
downloadsubsurface-ec37c71f5eeb7d4b0c4b8719b52583fadb0b8f4c.tar.gz
Core: add trip_table parameter to trip-functions
Currently trips are added to the global trip table. If we want to make dive-import undoable, we should be able to parse trips of a log-file into a distinct table. Therefore, add a trip_table parameter to - insert_trip() - create_and_hookup_trip_from_dive() - autogroup_dives() - unregister_trip() - remove_dive_from_trip() Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h
index d0666f724..1325a8bb9 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -411,8 +411,8 @@ extern void add_dive_to_trip(struct dive *, dive_trip_t *);
struct dive *unregister_dive(int idx);
extern void delete_single_dive(int idx);
-extern void insert_trip(dive_trip_t *trip);
-extern void unregister_trip(dive_trip_t *trip);
+extern void insert_trip(dive_trip_t *trip, struct trip_table *trip_table);
+extern void unregister_trip(dive_trip_t *trip, struct trip_table *trip_table);
extern void free_trip(dive_trip_t *trip);
extern timestamp_t trip_date(const struct dive_trip *trip);