summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index c1b95e3f6..eaafe8aeb 100644
--- a/dive.h
+++ b/dive.h
@@ -138,4 +138,9 @@ extern void parse_xml_file(const char *filename);
extern void flush_dive_info_changes(void);
extern void save_dives(const char *filename);
+static inline unsigned int dive_size(int samples)
+{
+ return sizeof(struct dive) + samples*sizeof(struct sample);
+}
+
#endif /* DIVE_H */