diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-06-04 13:59:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-19 13:11:10 -0700 |
commit | af5aa8a23dc66f7883989319949fc2b0255a0374 (patch) | |
tree | f02b5985200094c4dbc1daaafc625a1596f563f3 /core/gaspressures.h | |
parent | 619d3fb1fd4b7ab532537b7eca78f668d2ce381b (diff) | |
download | subsurface-af5aa8a23dc66f7883989319949fc2b0255a0374.tar.gz |
Cleanup: Make gaspressures.h a regular include file
gaspressure.h had definitions of non-exported structs, but did
not declare the only function exported by gaspressure.c.
Therefore, move the struct definitions into gaspressure.c and
the declarations of the populate_pressure_information() function
from profile.c to gaspressures.h.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/gaspressures.h')
-rw-r--r-- | core/gaspressures.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/core/gaspressures.h b/core/gaspressures.h index 7e4330e69..6444ec93b 100644 --- a/core/gaspressures.h +++ b/core/gaspressures.h @@ -6,29 +6,7 @@ extern "C" { #endif -/* - * simple structure to track the beginning and end tank pressure as - * well as the integral of depth over time spent while we have no - * pressure reading from the tank */ -typedef struct pr_track_struct pr_track_t; -struct pr_track_struct { - int start; - int end; - int t_start; - int t_end; - int pressure_time; - pr_track_t *next; -}; - -typedef struct pr_interpolate_struct pr_interpolate_t; -struct pr_interpolate_struct { - int start; - int end; - int pressure_time; - int acc_pressure_time; -}; - -enum interpolation_strategy {SAC, TIME, CONSTANT}; +void populate_pressure_information(struct dive *, struct divecomputer *, struct plot_info *, int); #ifdef __cplusplus } |