aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface.qrc
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2014-06-11 19:48:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-11 18:49:28 -0700
commita0f5a74847942a7448d8a6aedc6277cf5436c19b (patch)
tree143438f1b1175f53ef242e8610fd1d41fc75f9c5 /subsurface.qrc
parent6a9c4097c04c3b89f63c663ecd232cf70774e2e6 (diff)
downloadsubsurface-a0f5a74847942a7448d8a6aedc6277cf5436c19b.tar.gz
Provide for a dive_computer_type variable within 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_o2sensor (indicating number of o2 sensors for this dc) 3) In parse-xml.c add a function trimspace that strips any whitespace from a string. This is used by two functions: utf8_string as well as by get_dc_type, described below. The pointer to buffer is not changed in order to ensure consistency when the buffer is freed. 4) In parse-xml.c add a function get_dc_type. 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. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface.qrc')
0 files changed, 0 insertions, 0 deletions