summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 23:11:18 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 23:20:39 +0000
commit23304f69c04f13ba87f32e8574a75c08212a3608 (patch)
tree7925373ac99b32cb1306cd885b43ffe3f084f8ab /dive.h
parent202c5cbfeb6888b05ae4b14b4f563666bc6ca763 (diff)
downloadsubsurface-23304f69c04f13ba87f32e8574a75c08212a3608.tar.gz
Load and save the dc type for CCR dives
Oddly we already had code to load this from XML, but nothing else. This makes the load from XML work like the rest of our code and adds the save to XML plus the load and save for the git format. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 0848905e7..f687d2868 100644
--- a/dive.h
+++ b/dive.h
@@ -47,10 +47,11 @@ extern "C" {
#include <stdbool.h>
#endif
-enum dive_comp_type {OC, CCR, PSCR}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type
+enum dive_comp_type {OC, CCR, PSCR, NUM_DC_TYPE}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type
enum cylinderuse {OC_GAS, DILUENT, OXYGEN, NUM_GAS_USE}; // The different uses for cylinders
extern const char *cylinderuse_text[];
+extern const char *dctype_text[];
struct gasmix {
fraction_t o2;