]> 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 1927da7215a68e69ece2ce062cb58e61b6914bd9..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;
@@ -242,4 +244,7 @@ extern int open_import_file_dialog(char *filterpattern, char *filtertext,
 const char *weekday(int wday);
 const char *monthname(int mon);
 
+#define UTF8_DEGREE "\xc2\xb0"
+#define UTF8_SUBSCRIPT_2 "\xe2\x82\x82"
+
 #endif /* DIVE_H */