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:10:29 +0800
commit9c06938adcc7670201ed5e94ca2c35ec18702373 (patch)
tree07dc0c541edd0e11314e969174487610bf843d0c /dive.h
parentc32c28d40b627fa08051697f44a829c7f19854d0 (diff)
downloadsubsurface-9c06938adcc7670201ed5e94ca2c35ec18702373.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 042073b5f..ca717704c 100644
--- a/dive.h
+++ b/dive.h
@@ -818,6 +818,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"