mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
8212acc992
commit
464dd93fe8
4 changed files with 47 additions and 47 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue