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