summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-01-09 08:49:21 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-09 09:31:19 +0800
commit110c07e27b61cacacf4daba3a4606974c995721d (patch)
tree305e887c92238b58ad67f896e013394368a112f4 /dive.h
parent0d93470c50e6ebaa0128ba182a94090d6d000278 (diff)
downloadsubsurface-110c07e27b61cacacf4daba3a4606974c995721d.tar.gz
Add unit-aware conversion of pressure data
This just adds (and uses) a string_to_pressure() to parse pressure units correctly when filling in cylinder pressures. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index ecb0bfd50..a9df1a09f 100644
--- a/dive.h
+++ b/dive.h
@@ -801,6 +801,7 @@ extern double strtod_flags(const char *str, const char **ptr, unsigned int flags
extern weight_t string_to_weight(const char *str);
extern depth_t string_to_depth(const char *str);
+extern pressure_t string_to_pressure(const char *str);
#include "pref.h"