summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-05-28 09:55:46 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-26 20:33:50 -0700
commit8fcc074b493970fe45c7592d65bf216bc8bd8c42 (patch)
treeecc7fb237305a9c33e8dfee802c67b6413360268 /parse-xml.c
parentbb020ae918593b5241e64582847e8d54ede7243d (diff)
downloadsubsurface-8fcc074b493970fe45c7592d65bf216bc8bd8c42.tar.gz
Support for importing Poseidon MK6 logs
This patch adds support for importing the logs from a Poseidon MK6 rebreather. This DC produces logs that contain of a .txt file that has all the meta data and a .csv file that contains the sample readings. The CSV file is different from the others in that it has a line per each sample reading at given time. Thus we have to merge all the lines from one point in time into one sample reading of ours. [Dirk Hohndel: addressed some compiler warnings] Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index d54456e92..6da99b378 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -17,6 +17,7 @@
#include "dive.h"
#include "device.h"
+#include "membuffer.h"
int verbose, quit;
int metric = 1;
@@ -1738,6 +1739,13 @@ void parse_xml_buffer(const char *url, const char *buffer, int size,
xmlFreeDoc(doc);
}
+void parse_mkvi_buffer(struct membuffer *txt, struct membuffer *csv, const char *starttime)
+{
+ dive_start();
+ divedate(starttime, &cur_dive->when);
+ dive_end();
+}
+
extern int dm4_events(void *handle, int columns, char **data, char **column)
{
event_start();