]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
First steps towards integrating SDA files into the default XML loading
[ext/subsurface.git] / parse-xml.c
index 6eafb0d3aaf993bf8efc78b5d6916387ac0f3c0a..4e68e8ee25e9ee3fa9cbc823b58d51db87a2b8b8 100644 (file)
@@ -8,6 +8,7 @@
 #include <libxml/tree.h>
 
 #include "dive.h"
+#include "uemis.h"
 
 int verbose;
 
@@ -587,6 +588,8 @@ static void try_to_fill_event(const char *name, char *buf)
                return;
        if (MATCH(".flags", get_index, &event.flags))
                return;
+       if (MATCH(".value", get_index, &event.value))
+               return;
        nonmatch("event", name, buf);
 }
 
@@ -859,6 +862,7 @@ static int uemis_dive_match(struct dive *dive, const char *name, int len, char *
                MATCH(".nitrox_3.deco_tank.oxygen", uemis_percent, dive->cylinder + 5) ||
                MATCH(".nitrox_3.travel_tank.size", uemis_cylindersize, dive->cylinder + 6) ||
                MATCH(".nitrox_3.travel_tank.oxygen", uemis_percent, dive->cylinder + 6) ||
+               MATCH(".dive.val.bin", uemis_parse_divelog_binary, &dive) ||
                0;
 }
 
@@ -1363,6 +1367,7 @@ static struct nesting {
        { "SUUNTO", suunto_importer },
        { "Divinglog", DivingLog_importer },
        { "pre_dive", uemis_importer },
+       { "dives", uemis_importer },
        { "uddf", uddf_importer },
 
        { NULL, }