[PATCH] Consistent read and write of CCR data to and from XML

Willem Ferguson willemferguson at zoology.up.ac.za
Tue Nov 11 12:32:51 PST 2014

This patch ensures that the setpoint and the o2 sensor data,
as well as the dctype and no_o2sensor members of divecomputer
are all read properly from xml (parse-xml.c) and are written
to xml (save-xml) in a consistent way.

The variables being dealt with XML I/O here are:

Oxygen sensor data:

Divecomputer data:

After these changes a CCR dive can be read from CSV, saved as XML
and read back from XML in a consistent way.

Signed-off-by: willem ferguson <willemferguson at zoology.up.ac.za>

Dirk, there are trivial changes to profile.c listed in this patch. Although
they will not have any effect whatsoever, I would prefer them not
being merged. I am struggling to remove profile.c from the commit
because it was not intended to be added.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Modify-parse-xml.c-and-save-xml.c-to-read-and-to-sto.patch
Type: text/x-diff
Size: 4531 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141111/7858283d/attachment.patch>

More information about the subsurface mailing list