#include <libxml/tree.h>
#include "dive.h"
+#include "uemis.h"
int verbose;
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;
}
{ "SUUNTO", suunto_importer },
{ "Divinglog", DivingLog_importer },
{ "pre_dive", uemis_importer },
+ { "dives", uemis_importer },
{ "uddf", uddf_importer },
{ NULL, }
/*
* parse uemis base64 data blob into struct dive
*/
-static void parse_divelog_binary(char *base64, struct dive **divep) {
+void uemis_parse_divelog_binary(char *base64, struct dive **divep) {
int datalen;
int i;
uint8_t *data;
/* some error handling */
goto bail;
}
- parse_divelog_binary(found,&dive);
+ uemis_parse_divelog_binary(found,&dive);
record_dive(dive);
bail:
if (found)
#define DEVICE_TYPE_UEMIS (-1)
void uemis_import();
+void uemis_parse_divelog_binary(char *base64, struct dive **divep);
#endif /* DIVE_H */