diff options
author | John Van Ostrand <john@vanostrand.com> | 2014-10-17 21:03:37 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-27 15:21:19 -0700 |
commit | 49401eec0bc83bc852114eac0a6ec828016e9ae8 (patch) | |
tree | 8f3a47568692791ce2e1bd987c6ffea9d1a907db /file.h | |
parent | b5dedcfba41cf5f3d4d62de37aa83470ce8ccba3 (diff) | |
download | subsurface-49401eec0bc83bc852114eac0a6ec828016e9ae8.tar.gz |
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 <john@vanostrand.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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" { |