diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 11:13:46 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-06 11:40:21 -0800 |
commit | c8830ffe482457f4e1fc4782dc3118d3d41ee0b7 (patch) | |
tree | b70e5e699fcc11e29378122945a2861673cdee38 /dive.h | |
parent | c607f09f402ccd0b6463c6e7630ee2d162d78579 (diff) | |
download | subsurface-c8830ffe482457f4e1fc4782dc3118d3d41ee0b7.tar.gz |
Add the ability to cache our deco state
We kept reduing all the deco calculations, including the previous dives
(if any) for each segment we add to the dive plan. This simply remembers
the last stage and then just adds to that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -577,6 +577,8 @@ extern void clear_deco(double surface_pressure); extern void dump_tissues(void); extern unsigned int deco_allowed_depth(double tissues_tolerance, double surface_pressure, struct dive *dive, gboolean smooth); extern void set_gf(double gflow, double gfhigh); +extern void cache_deco_state(double, char **datap); +extern double restore_deco_state(char *data); struct divedatapoint { int time; |