summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-12 13:25:05 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-12 13:25:05 -0700
commit42f627b8b1cf7e929a30c0a07a5fb44a4cec9e1f (patch)
tree0e42e51ce46d386a8366478fcc3d66ad5b19ce1f /dive.h
parentaa416e3c96dfa53db5ae277e72f6a03821c45cac (diff)
downloadsubsurface-42f627b8b1cf7e929a30c0a07a5fb44a4cec9e1f.tar.gz
Libdivecomputer: start actually importing the dive data
So this actually reports the dive data that libdivecomputer generates. It doesn't import special events etc, but neither do we for the xml importer. It is also slow as heck, since it doesn't try to do the "hey, I already have this dive" logic and always imports everything, but the basics are definitely there. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index ee57cf820..cc6e85da2 100644
--- a/dive.h
+++ b/dive.h
@@ -193,12 +193,15 @@ static inline unsigned int dive_size(int samples)
return sizeof(struct dive) + samples*sizeof(struct sample);
}
+extern time_t utc_mktime(struct tm *tm);
+
extern struct dive *alloc_dive(void);
extern void record_dive(struct dive *dive);
extern struct sample *prepare_sample(struct dive **divep);
extern void finish_sample(struct dive *dive, struct sample *sample);
+extern void report_dives(void);
extern struct dive *fixup_dive(struct dive *dive);
extern struct dive *try_to_merge(struct dive *a, struct dive *b);