]> git.tdb.fi Git - ext/subsurface.git/blobdiff - dive.h
Add helper function for doing depth unit calculations
[ext/subsurface.git] / dive.h
diff --git a/dive.h b/dive.h
index 85fdabf5d5f2d8ecda15f6c279022467693c649a..fc458d04d4292df0a36bf99428c84b66c169aad2 100644 (file)
--- a/dive.h
+++ b/dive.h
@@ -86,6 +86,8 @@ typedef struct {
        pressure_t start, end;
 } cylinder_t;
 
+extern double get_depth_units(unsigned int mm, int *frac, const char **units);
+
 static inline double mm_to_feet(int mm)
 {
        return mm * 0.00328084;