diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-27 12:43:40 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-27 12:43:40 -0800 |
commit | b1a747f537d1df8b9ea9f4caf55e568dd4c3a733 (patch) | |
tree | 104df7daa5b83548776be892ef65f5108bd6a34a /file.h | |
parent | bea6637c03a90fbb9e754f5f63625fffb7cbaa69 (diff) | |
download | subsurface-b1a747f537d1df8b9ea9f4caf55e568dd4c3a733.tar.gz |
Add some initial cochran CAN file parsing
It's broken, and currently only writes out a debug output file per dive.
I'm not sure I'll ever really be able to decode the mess that is the
Cochran ANalyst stuff, but I have a few test files, along with separate
depth info from a couple of the dives in question, so in case this ever
works I can at least validate it to some degree.
The file format is definitely very intentionally obscured, though.
Annoying. It's not like the Cochran software is actually all that good
(it's really quite a horribly nasty Windows-only app, I'm told).
Cochran Analyst is very much not the reason why people would buy those
computers. So Cochran making their computers harder to use with other
software is just stupid.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#ifndef FILE_H +#define FILE_H + +struct memblock { + void *buffer; + size_t size; +}; + +extern int try_to_open_cochran(const char *filename, struct memblock *mem, GError **error); + +#endif |