diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-16 07:55:31 -0600 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-16 09:21:20 -0600 |
commit | dd49e3a9a92e3d1a1534a870e9e3b588845fb364 (patch) | |
tree | 64eb9e5cbea9dd01d61193c71f2f56124101c2e8 /dive.h | |
parent | c58d136d3313692d275c73cdab44b9e71f637f09 (diff) | |
download | subsurface-dd49e3a9a92e3d1a1534a870e9e3b588845fb364.tar.gz |
Cut'n'paste for dive data: implement some infrastructure
This commit doesn't do anything, yet. It just puts in place helper
infrastructure that will later allow us to cut and paste parts of the data
of one dive into another dive (or set of dives).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -295,6 +295,21 @@ struct dive { struct picture *picture_list; }; +/* when selectively copying dive information, which parts should be copied? */ +struct dive_components { + unsigned int location : 1; + unsigned int notes : 1; + unsigned int divemaster : 1; + unsigned int buddy : 1; + unsigned int suit : 1; + unsigned int rating : 1; + unsigned int visibility : 1; + unsigned int gps : 1; + unsigned int tags : 1; + unsigned int cylinders : 1; + unsigned int weights : 1; +}; + /* picture list and methods related to dive picture handling */ struct picture { char *filename; @@ -606,6 +621,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 void selective_copy_dive(struct dive *s, struct dive *d, struct dive_components what); extern struct dive *clone_dive(struct dive *s); extern struct sample *prepare_sample(struct divecomputer *dc); |