summaryrefslogtreecommitdiffstats
path: root/core/planner.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-10 15:29:03 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2019-09-10 21:31:21 +0200
commitee365b734119be424e48c4a2cef5f54021521cb8 (patch)
tree65751a173a73e01a5fd05b0d437bf4070dfaa511 /core/planner.h
parent4706b0f11ae335c1d23e1334b3530fce1a2c9279 (diff)
downloadsubsurface-ee365b734119be424e48c4a2cef5f54021521cb8.tar.gz
Plan: introduce function that returns disclaimer
The setting of the disclaimer variable was removed inadvertently some time ago, which removed the disclaimer from the printed plan. Instead, introduce a function that returns the disclaimer with the current deco mode. Use that function to generate the dive notes and for printing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/planner.h')
-rw-r--r--core/planner.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/planner.h b/core/planner.h
index 156d39983..4d25c49eb 100644
--- a/core/planner.h
+++ b/core/planner.h
@@ -51,6 +51,7 @@ extern int get_gasidx(struct dive *dive, struct gasmix mix);
extern bool diveplan_empty(struct diveplan *diveplan);
extern void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer, int error);
extern const char *get_planner_disclaimer();
+extern char *get_planner_disclaimer_formatted();
extern void free_dps(struct diveplan *diveplan);
extern struct dive *planned_dive;