X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=file.c;h=aff1d51f2d2c87b470f2b61b23d6c8b945870f73;hb=8add7917ce9da2faa7751798c3fb15a24715ae1e;hp=2e46f94fd1ac2009a707507e8abdbee98b2bb7ad;hpb=bea6637c03a90fbb9e754f5f63625fffb7cbaa69;p=ext%2Fsubsurface.git diff --git a/file.c b/file.c index 2e46f94..aff1d51 100644 --- a/file.c +++ b/file.c @@ -6,11 +6,7 @@ #include #include "dive.h" - -struct memblock { - void *buffer; - size_t size; -}; +#include "file.h" static int readfile(const char *filename, struct memblock *mem) { @@ -104,6 +100,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo if (!strcasecmp(fmt, "SDE")) return try_to_open_suunto(filename, mem, error); + /* Truly nasty intentionally obfuscated Cochran Anal software */ + if (!strcasecmp(fmt, "CAN")) + return try_to_open_cochran(filename, mem, error); + return 0; }