diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2014-06-11 19:48:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-11 18:49:28 -0700 |
commit | a0f5a74847942a7448d8a6aedc6277cf5436c19b (patch) | |
tree | 143438f1b1175f53ef242e8610fd1d41fc75f9c5 /windows.c | |
parent | 6a9c4097c04c3b89f63c663ecd232cf70774e2e6 (diff) | |
download | subsurface-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 'windows.c')
0 files changed, 0 insertions, 0 deletions