+/*
+ * Crazy suunto xml. Look at how those o2/he things match up.
+ */
+static int suunto_dive_match(struct dive *dive, const char *name, int len, char *buf)
+{
+ return MATCH(".o2pct", percent, &dive->gasmix[0].o2) ||
+ MATCH(".hepct_0", percent, &dive->gasmix[0].he) ||
+ MATCH(".o2pct_2", percent, &dive->gasmix[1].o2) ||
+ MATCH(".hepct_1", percent, &dive->gasmix[1].he) ||
+ MATCH(".o2pct_3", percent, &dive->gasmix[2].o2) ||
+ MATCH(".hepct_2", percent, &dive->gasmix[2].he) ||
+ MATCH(".o2pct_4", percent, &dive->gasmix[3].o2) ||
+ MATCH(".hepct_3", percent, &dive->gasmix[3].he);
+}
+