aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-20 09:20:32 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-20 09:27:11 +0900
commita5380bb741c1081c86353cf5cd7b506b97e02ea9 (patch)
tree7766fa0dd4c359d07d9de95631bc052c5c082e5d /core/dive.h
parent49f3da3bfd9f336108fd5d4c3977b41e90f75d3f (diff)
downloadsubsurface-a5380bb741c1081c86353cf5cd7b506b97e02ea9.tar.gz
core: add free_samples helper
And use it in the UI and planner code. See #1411 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index 5c7b74395..326dfe54b 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -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);