mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Replace cylinder_is_used with is_cylinder_used
is_cylinder_used uses get_cylinder_index as underlaying function that does the right thing with with respect on how to find the closest matching cylinder, and handles both types of gaschange events correctly. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
810880ea1d
commit
950638ec1c
6 changed files with 7 additions and 32 deletions
2
dive.h
2
dive.h
|
|
@ -623,7 +623,7 @@ extern void renumber_dives(int start_nr, bool selected_only);
|
|||
extern void copy_events(struct divecomputer *s, struct divecomputer *d);
|
||||
extern void copy_cylinders(struct dive *s, struct dive *d, bool used_only);
|
||||
extern void copy_samples(struct divecomputer *s, struct divecomputer *d);
|
||||
extern bool cylinder_is_used(struct dive *d, cylinder_t *cyl);
|
||||
extern bool is_cylinder_used(struct dive *dive, int idx);
|
||||
extern void fill_default_cylinder(cylinder_t *cyl);
|
||||
extern void add_gas_switch_event(struct dive *dive, struct divecomputer *dc, int time, int idx);
|
||||
extern void add_event(struct divecomputer *dc, int time, int type, int flags, int value, const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue