diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-16 10:55:58 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-16 15:46:54 -1000 |
commit | 73defa9a52e9c22fa6c87b6c2ff779da213efd1a (patch) | |
tree | e0b0cef64e7fed5a0e7a0ffd5b2c51901f39743e /dive.h | |
parent | 92c15238b6043c927a1f8bc8fd541086e1d5f306 (diff) | |
download | subsurface-73defa9a52e9c22fa6c87b6c2ff779da213efd1a.tar.gz |
Use dive computer model/ID when trying to merge dives
If we havd divecomputer model and dive ID information available, use
that to match existing dives when trying to merge them.
Otherwise fall back to the fuzzy time-based merging logic.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -448,6 +448,9 @@ static inline struct dive *get_dive_by_diveid(int diveid, int deviceid) return NULL; } +/* Check if two dive computer entries are the exact same dive (-1=no/0=maybe/1=yes) */ +extern int match_one_dc(struct divecomputer *a, struct divecomputer *b); + /* * Iterate over each dive, with the first parameter being the index * iterator variable, and the second one being the dive one. |