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