summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 13:34:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 13:34:27 -0700
commit47f9f59c1a8c9a6a10b6169562066a58da7aee76 (patch)
tree80fd805a242acf265609ec17ded2a9487ec3295c /dive.h
parent6b1b2bc919e311cc7e83f336017f35216c8da538 (diff)
downloadsubsurface-47f9f59c1a8c9a6a10b6169562066a58da7aee76.tar.gz
UI restructure: add clone_dive helper
This is kind of the inverse to copy_dive(). Instead of duplicating all the data that the dive points to, it moves it to a new struct dive and zeroes out the old one so there are no two sets of pointers to these data. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 8549296d7..f20a0cff0 100644
--- a/dive.h
+++ b/dive.h
@@ -605,6 +605,7 @@ extern struct dive *alloc_dive(void);
extern void record_dive(struct dive *dive);
extern void clear_dive(struct dive *dive);
extern void copy_dive(struct dive *s, struct dive *d);
+extern struct dive *clone_dive(struct dive *s);
extern struct sample *prepare_sample(struct divecomputer *dc);
extern void finish_sample(struct divecomputer *dc);