[CCR PATCH] set dc type within the dc structure

Willem Ferguson willemferguson at zoology.up.ac.za
Tue Jun 10 06:54:33 PDT 2014


     Assigning dc type to the dc structure

     This patch lays the foundation for differentiating between 
open-circuit(OC)
     dives and rebreather dives (CCR). The following were done:
     1) In dive.h add an enum type dive_computer_type
     2) In dive.h add two more fields to the dc structure:
         a) dctype  (an enum field indicating dc type)
         b) no_o2sensors (indicating number of o2 sensors for this dc)
     3) In parse-xml.c add a function dctype_string. This parses the dc_type
        string from xml and assigns an enum value which will later be 
returned
        to the function that parses the dc variables.
     4) In dive.c in function fixup_dive_dc, the dc->dctype variable is set
        to OC (open-circuit) if this value has not been initialised from the
        xm log file.

     Signed-off-by: Willem Ferguson <willemferguson at zoology.up.ac.za>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Assigning-dc-type-to-the-dc-structure.patch
Type: text/x-patch
Size: 4031 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140610/002d1faf/attachment.bin>


More information about the subsurface mailing list