| 
									
										
										
										
											2017-04-27 20:18:03 +02:00
										 |  |  | // SPDX-License-Identifier: GPL-2.0
 | 
					
						
							| 
									
										
										
										
											2012-01-27 12:43:40 -08:00
										 |  |  | #ifndef FILE_H
 | 
					
						
							|  |  |  | #define FILE_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct memblock { | 
					
						
							|  |  |  | 	void *buffer; | 
					
						
							|  |  |  | 	size_t size; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-17 21:03:37 -04:00
										 |  |  | extern int try_to_open_cochran(const char *filename, struct memblock *mem); | 
					
						
							| 
									
										
										
										
											2014-11-07 12:51:01 -05:00
										 |  |  | extern int try_to_open_liquivision(const char *filename, struct memblock *mem); | 
					
						
							| 
									
										
										
										
											2017-05-07 10:15:59 +02:00
										 |  |  | extern int datatrak_import(struct memblock *mem, struct dive_table *table); | 
					
						
							| 
									
										
										
										
											2015-04-04 01:07:59 +02:00
										 |  |  | extern void ostctools_import(const char *file, struct dive_table *table); | 
					
						
							| 
									
										
										
										
											2014-01-27 14:44:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | extern "C" { | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2013-03-13 20:37:38 -07:00
										 |  |  | extern int readfile(const char *filename, struct memblock *mem); | 
					
						
							| 
									
										
										
										
											2014-01-27 14:44:26 +01:00
										 |  |  | extern timestamp_t parse_date(const char *date); | 
					
						
							| 
									
										
										
										
											2016-03-07 15:36:51 -03:00
										 |  |  | extern int try_to_open_zip(const char *filename); | 
					
						
							| 
									
										
										
										
											2014-01-27 14:44:26 +01:00
										 |  |  | #ifdef __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2012-01-27 12:43:40 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-11 19:14:46 +01:00
										 |  |  | #endif // FILE_H
 |