summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-07-24 13:59:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-14 22:40:14 -0600
commit5b14ed16accc39a1ed46f894404b10655576e386 (patch)
treea9c4ad2021f2f64be4b38c69a87dbea82f9b5c05 /libdivecomputer.h
parent87ca15c5c35f32049f66f3cb2da1dc723bc5c1a9 (diff)
downloadsubsurface-5b14ed16accc39a1ed46f894404b10655576e386.tar.gz
Add "download into private trip" dialog checkmark
This adds a checkbox for the divecomputer download dialog that allows you to tell the download to put the newly downloaded dives into a trip of their own. That in turn will disable the dive merging with any existing dives, which means that you will not mix up your newly downloaded dives with any old dives. That, in turn, is very convenient of you know that some of the dives were done by other divers (or from testing that happened during servicing etc), or the dive dates etc were wrong because the dive computer date had reset due to battery changes etc. Once you have all the dives in a private trip of their own, you can then fix them up (delete dives you don't want to merge etc), and then after all the data is ok you might want to merge the cleaned-up results with previous trips etc, and then manually ask subsurface to merge the dives or whatever. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.h')
-rw-r--r--libdivecomputer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdivecomputer.h b/libdivecomputer.h
index d9c5ac90a..f277e298f 100644
--- a/libdivecomputer.h
+++ b/libdivecomputer.h
@@ -23,8 +23,10 @@ typedef struct device_data_t
uint32_t deviceid, diveid;
dc_device_t *device;
dc_context_t *context;
+ struct dive_trip *trip;
int preexisting;
bool force_download;
+ bool create_new_trip;
bool libdc_log;
bool libdc_dump;
FILE *libdc_logfile;