mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
619d3fb1fd
commit
af5aa8a23d
3 changed files with 25 additions and 24 deletions
|
@ -25,6 +25,30 @@
|
|||
#include "gaspressures.h"
|
||||
#include "pref.h"
|
||||
|
||||
/*
|
||||
* 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};
|
||||
|
||||
static pr_track_t *pr_track_alloc(int start, int t_start)
|
||||
{
|
||||
pr_track_t *pt = malloc(sizeof(pr_track_t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue