aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 6809d8384..6ca091e9d 100644
--- a/dive.h
+++ b/dive.h
@@ -48,6 +48,7 @@ extern "C" {
#endif
enum dive_comp_type {OC, CCR}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type
+enum cylinderuse {oxygen, diluent, bailout}; // The different uses for cylinders in CCR dives
struct gasmix {
fraction_t o2;
@@ -70,6 +71,7 @@ typedef struct
bool manually_added;
volume_t gas_used;
volume_t deco_gas_used;
+ enum cylinderuse cylinder_use;
} cylinder_t;
typedef struct
@@ -319,8 +321,11 @@ struct dive {
struct divecomputer dc;
int id; // unique ID for this dive
struct picture *picture_list;
+ int oxygen_cylinder_index, diluent_cylinder_index; // CCR dive cylinder indices
};
+extern int get_cylinder_use(struct dive *dive, enum cylinderuse cylinder_use_type);
+
/* when selectively copying dive information, which parts should be copied? */
struct dive_components {
unsigned int location : 1;