summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.c b/file.c
index 25221e635..ad646c47c 100644
--- a/file.c
+++ b/file.c
@@ -22,6 +22,8 @@
#define O_BINARY 0
#endif
+extern void datatrak_import(const char *file, struct dive_table *table);
+
int readfile(const char *filename, struct memblock *mem)
{
int ret, fd;
@@ -454,6 +456,12 @@ int parse_file(const char *filename)
return -1;
}
+ /* DataTrak/Wlog */
+ if (fmt && (!strcasecmp(fmt + 1, "LOG"))) {
+ datatrak_import(filename, &dive_table);
+ return 0;
+ }
+
ret = parse_file_buffer(filename, &mem);
free(mem.buffer);
return ret;