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