mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: add free_samples helper
And use it in the UI and planner code. See #1411 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
49f3da3bfd
commit
a5380bb741
4 changed files with 16 additions and 15 deletions
|
|
@ -747,6 +747,7 @@ extern struct dive *clone_dive(struct dive *s);
|
|||
extern void clear_table(struct dive_table *table);
|
||||
|
||||
extern void alloc_samples(struct divecomputer *dc, int num);
|
||||
extern void free_samples(struct divecomputer *dc);
|
||||
extern struct sample *prepare_sample(struct divecomputer *dc);
|
||||
extern void finish_sample(struct divecomputer *dc);
|
||||
extern void add_sample_pressure(struct sample *sample, int sensor, int mbar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue