#include <errno.h>
#include "dive.h"
-
-struct memblock {
- void *buffer;
- size_t size;
-};
+#include "file.h"
static int readfile(const char *filename, struct memblock *mem)
{
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;
}