diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-05-26 00:45:53 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-26 15:44:36 -0700 |
commit | 7b18be2a50e3c94fa1e9ae30c92bbb3eee3593d6 (patch) | |
tree | af16a82b1302591c3448812280f261b1cc5296e4 /core/dive.h | |
parent | 57ee5a5477c92ff4dd7b8975b1866c988556d14e (diff) | |
download | subsurface-7b18be2a50e3c94fa1e9ae30c92bbb3eee3593d6.tar.gz |
Adopt planner state caching to new struct
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.h b/core/dive.h index a39759763..fa89edc44 100644 --- a/core/dive.h +++ b/core/dive.h @@ -863,8 +863,8 @@ extern void clear_deco(double surface_pressure); extern void dump_tissues(void); extern void set_gf(short gflow, short gfhigh, bool gf_low_at_maxdepth); extern void set_vpmb_conservatism(short conservatism); -extern void cache_deco_state(char **datap); -extern void restore_deco_state(char *data); +extern void cache_deco_state(struct deco_state **datap); +extern void restore_deco_state(struct deco_state *data, bool keep_vpmb_state); extern void nuclear_regeneration(double time); extern void vpmb_start_gradient(); extern void vpmb_next_gradient(double deco_time, double surface_pressure); @@ -900,7 +900,7 @@ struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan); #endif -bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); +bool plan(struct diveplan *diveplan, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer); void calc_crushing_pressure(double pressure); void vpmb_start_gradient(); void clear_vpmb_state(); |