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>
This commit is contained in:
Berthold Stoeger 2020-10-25 11:36:44 +01:00 committed by Dirk Hohndel
parent 8212acc992
commit 464dd93fe8
4 changed files with 47 additions and 47 deletions

View file

@ -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);