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
|
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);
|
|
|
|
extern void show_planned_dive(char **error_string_p);
|
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);
|
2014-07-17 19:16:50 +00:00
|
|
|
extern void get_gas_at_time(struct dive *dive, struct divecomputer *dc, duration_t time, struct gasmix *gas);
|
2014-06-01 21:17:06 +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);
|
2013-04-08 03:20:25 +00:00
|
|
|
|
|
|
|
extern struct dive *planned_dive;
|
|
|
|
extern char *cache_data;
|
2014-06-04 21:34:09 +00:00
|
|
|
extern const 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
|