summaryrefslogtreecommitdiffstats
path: root/core/gas.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-25 11:36:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:59:52 -0700
commit464dd93fe8266e3d0af706a6809f09611bd9f83c (patch)
tree16114568db6e58ad25e14dd76f5a724a7f33d6e8 /core/gas.h
parent8212acc9925b28ecd546b01047c6a8fc574326ef (diff)
downloadsubsurface-464dd93fe8266e3d0af706a6809f09611bd9f83c.tar.gz
cleanup: move fill_pressures from dive.c to gas.c
This function does not access a dive structure. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/gas.h')
-rw-r--r--core/gas.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/gas.h b/core/gas.h
index c5db7eeff..014eaca4b 100644
--- a/core/gas.h
+++ b/core/gas.h
@@ -2,6 +2,7 @@
#ifndef GAS_H
#define GAS_H
+#include "divemode.h"
#include "units.h"
#ifdef __cplusplus
@@ -55,6 +56,7 @@ struct gas_pressures {
extern void sanitize_gasmix(struct gasmix *mix);
extern int gasmix_distance(struct gasmix a, struct gasmix b);
extern fraction_t get_gas_component_fraction(struct gasmix mix, enum gas_component component);
+extern void fill_pressures(struct gas_pressures *pressures, double amb_pressure, struct gasmix mix, double po2, enum divemode_t dctype);
extern bool gasmix_is_air(struct gasmix gasmix);