summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-06 11:13:46 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-06 11:40:21 -0800
commitc8830ffe482457f4e1fc4782dc3118d3d41ee0b7 (patch)
treeb70e5e699fcc11e29378122945a2861673cdee38 /dive.h
parentc607f09f402ccd0b6463c6e7630ee2d162d78579 (diff)
downloadsubsurface-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index d1f091e7a..aae57e8b7 100644
--- a/dive.h
+++ b/dive.h
@@ -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;