diff options
Diffstat (limited to 'core/gas.h')
-rw-r--r-- | core/gas.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/gas.h b/core/gas.h index 014eaca4b..5e0f4675f 100644 --- a/core/gas.h +++ b/core/gas.h @@ -22,6 +22,16 @@ struct gasmix { static const struct gasmix gasmix_invalid = { { -1 }, { -1 } }; static const struct gasmix gasmix_air = { { 0 }, { 0 } }; +enum gastype { + GASTYPE_AIR, + GASTYPE_NITROX, + GASTYPE_HYPOXIC_TRIMIX, + GASTYPE_NORMOXIC_TRIMIX, + GASTYPE_HYPEROXIC_TRIMIX, + GASTYPE_OXYGEN, + GASTYPE_COUNT +}; + struct icd_data { // This structure provides communication between function isobaric_counterdiffusion() and the calling software. int dN2; // The change in fraction (permille) of nitrogen during the change int dHe; // The change in fraction (permille) of helium during the change @@ -59,6 +69,8 @@ extern fraction_t get_gas_component_fraction(struct gasmix mix, enum gas_compone 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); +extern enum gastype gasmix_to_type(struct gasmix mix); +extern const char *gastype_name(enum gastype type); #ifdef __cplusplus } |