mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
3ca4e14d5c
OSTCTools is a windows based software by Robert Angeymar which performs configuration upgrade, memory analysis and download tasks for H&W OSTC devices. Downloaded dives are stored in files (one archive each) with the raw binary data heavily padded at the begining of the file, and some other data not included in H&W dive header protocol as the device's serial number. The import function simply takes the raw data part of the file and lets libdivecomputer do the parseing. Then adds some additional info as OSTC reported dive number and serial device number. Please note that OSTCTools is *not* a real logging software, it simply gets the DC raw data, so there isn't any information about dive site, equipment and so. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
23 lines
585 B
C
23 lines
585 B
C
#ifndef FILE_H
|
|
#define FILE_H
|
|
|
|
struct memblock {
|
|
void *buffer;
|
|
size_t size;
|
|
};
|
|
|
|
extern int try_to_open_cochran(const char *filename, struct memblock *mem);
|
|
extern int try_to_open_liquivision(const char *filename, struct memblock *mem);
|
|
extern void datatrak_import(const char *file, struct dive_table *table);
|
|
extern void ostctools_import(const char *file, struct dive_table *table);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
extern int readfile(const char *filename, struct memblock *mem);
|
|
extern timestamp_t parse_date(const char *date);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // FILE_H
|