mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allow the user to delete a dive computer from a dive
This can't be the only dive computer, of course. Goes nicely with the ability to reprder them. Fixes #551 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c4aa1f542c
commit
2b59765da3
4 changed files with 78 additions and 22 deletions
2
dive.h
2
dive.h
|
@ -456,6 +456,8 @@ static inline struct divecomputer *get_dive_dc(struct dive *dive, int nr)
|
|||
}
|
||||
|
||||
extern void make_first_dc(void);
|
||||
extern int count_divecomputers(void);
|
||||
extern void delete_current_divecomputer(void);
|
||||
|
||||
/*
|
||||
* Iterate over each dive, with the first parameter being the index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue