2017-04-27 18:18:03 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2013-04-08 03:20:25 +00:00
|
|
|
#ifndef PLANNER_H
|
|
|
|
#define PLANNER_H
|
|
|
|
|
2014-08-05 10:58:23 +00:00
|
|
|
#define LONGDECO 1
|
2015-03-31 12:52:37 +00:00
|
|
|
#define NOT_RECREATIONAL 2
|
2013-08-30 18:06:26 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-06-01 21:17:06 +00:00
|
|
|
extern int validate_gas(const char *text, struct gasmix *gas);
|
2013-04-08 03:20:25 +00:00
|
|
|
extern int validate_po2(const char *text, int *mbar_po2);
|
|
|
|
extern timestamp_t current_time_notz(void);
|
2013-10-05 07:29:09 +00:00
|
|
|
extern void set_last_stop(bool last_stop_6m);
|
2014-06-02 14:25:58 +00:00
|
|
|
extern void set_verbatim(bool verbatim);
|
|
|
|
extern void set_display_runtime(bool display);
|
|
|
|
extern void set_display_duration(bool display);
|
|
|
|
extern void set_display_transitions(bool display);
|
2016-07-06 12:40:28 +00:00
|
|
|
extern int get_cylinderid_at_time(struct dive *dive, struct divecomputer *dc, duration_t time);
|
2018-08-16 17:10:10 +00:00
|
|
|
extern int get_gasidx(struct dive *dive, struct gasmix mix);
|
2014-05-30 22:40:13 +00:00
|
|
|
extern bool diveplan_empty(struct diveplan *diveplan);
|
2017-05-25 10:57:06 +00:00
|
|
|
extern void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer, int error);
|
2013-04-08 03:20:25 +00:00
|
|
|
|
2014-08-19 16:41:09 +00:00
|
|
|
extern void free_dps(struct diveplan *diveplan);
|
2013-04-08 03:20:25 +00:00
|
|
|
extern struct dive *planned_dive;
|
|
|
|
extern char *cache_data;
|
2017-03-27 16:30:05 +00:00
|
|
|
extern char *disclaimer;
|
2013-04-08 03:20:25 +00:00
|
|
|
extern double plangflow, plangfhigh;
|
2013-08-30 18:06:26 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2014-02-11 18:14:46 +00:00
|
|
|
#endif // PLANNER_H
|