summaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-01-27 12:43:40 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-01-27 12:43:40 -0800
commitb1a747f537d1df8b9ea9f4caf55e568dd4c3a733 (patch)
tree104df7daa5b83548776be892ef65f5108bd6a34a /file.h
parentbea6637c03a90fbb9e754f5f63625fffb7cbaa69 (diff)
downloadsubsurface-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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 000000000..df7e5eaf9
--- /dev/null
+++ b/file.h
@@ -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