From 49401eec0bc83bc852114eac0a6ec828016e9ae8 Mon Sep 17 00:00:00 2001 From: John Van Ostrand Date: Fri, 17 Oct 2014 21:03:37 -0400 Subject: Finished Cochran dive log import I fixed up the decode and finished the parse for Cochran EMC, Commander and Gemini computers. I suspect that this code may only work with files from certain versions of Cochran Analyst. It works with my own CAN files and with the samples that came with Analyst v4.01v. A seemingly arbitrary offset of 0x4914 is needed to access data. The previous code uses 0x4a14 and 0x4b14. I suspect these are from different version of Analyst. [Dirk Hohndel: whitespace cleanup, add files to subsurface.pro, made sure this compiles without the corresponding patch to libdivecomputer (that isn't upstream, yet), cleaned up the usage of structs, removed a few unused variables] Signed-off-by: John Van Ostrand Signed-off-by: Dirk Hohndel --- file.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'file.h') diff --git a/file.h b/file.h index 2e4d3ebde..8c5b48bc9 100644 --- a/file.h +++ b/file.h @@ -6,9 +6,7 @@ struct memblock { size_t size; }; -#if 0 -extern int try_to_open_cochran(const char *filename, struct memblock *mem, GError **error); -#endif +extern int try_to_open_cochran(const char *filename, struct memblock *mem); #ifdef __cplusplus extern "C" { -- cgit v1.2.3-70-g09d2