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:
Dirk Hohndel 2014-06-11 13:56:33 -07:00
parent c4aa1f542c
commit 2b59765da3
4 changed files with 78 additions and 22 deletions

2
dive.h
View file

@ -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