diff options
author | Robert C. Helling <helling@atdotde.de> | 2018-03-28 22:50:28 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | 69de9d8f988aecc59b53c5bf1a1ec55d6529c59e (patch) | |
tree | 2b6e11f2bc362f6dbfc2160a9f1241cc5aa99851 /core/dive.h | |
parent | 6b0ecb012dcfe1945bedf38fe25f67a1d2c3c400 (diff) | |
download | subsurface-69de9d8f988aecc59b53c5bf1a1ec55d6529c59e.tar.gz |
Add planner infra structure for bailout
Add a divemode column to the planner model and a
corresponding field to struct divepoint and fill it
in the corresponding functions.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h index 75f042790..54935226d 100644 --- a/core/dive.h +++ b/core/dive.h @@ -874,6 +874,7 @@ struct divedatapoint { int setpoint; bool entered; struct divedatapoint *next; + enum dive_comp_type divemode; }; struct diveplan { @@ -890,7 +891,7 @@ struct diveplan { int surface_interval; }; -struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered); +struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered, enum dive_comp_type divemode); struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po2); #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan); |