summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-08-27 22:49:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-29 06:49:44 -0700
commite6545a7b0f262d9185a43054f945aa0bc068ac37 (patch)
treeb0602a5ed577fc1569c9f87ec4afeb7538c1598b /core/dive.h
parent456e2cec89bf53904851cce2bad7f344c64c6f98 (diff)
downloadsubsurface-e6545a7b0f262d9185a43054f945aa0bc068ac37.tar.gz
Store a table of deco stops in planner
... in addition to struct diveplan which combines all kinds of information Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/dive.h b/core/dive.h
index 0e0678c20..b3be9fa91 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -905,12 +905,15 @@ 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, struct dive *dive, int timestep, struct deco_state **cached_datap, bool is_planner, bool show_disclaimer);
+struct decostop {
+ int depth;
+ int time;
+};
+bool plan(struct diveplan *diveplan, struct dive *dive, int timestep, struct decostop *decostoptable, 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();
-
void delete_single_dive(int idx);
struct event *get_next_event(struct event *event, const char *name);