summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2018-04-05 12:02:25 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-14 23:47:00 +0300
commitc1d04ef7dcbbe34eccf4515a59063ed807e8d5e5 (patch)
tree0618789b6ed6e1abdc40dc0eb2d79c52cb5bffac /core/dive.h
parent27a0542220ae3766f0a98058c28e86d6c6d43a62 (diff)
downloadsubsurface-c1d04ef7dcbbe34eccf4515a59063ed807e8d5e5.tar.gz
Simplify bailout events in the dive log
I removed the special event type that has been used for bailout events. Bailout events are now just bookmarks with a specific name "e.g. OC, CCR, PSCR). This removes a case where a segmentation error occurred when trying to remove a bailout event from the dive profile. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/dive.h b/core/dive.h
index dc204b1d6..c46b9d64a 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -83,16 +83,14 @@ struct event {
/* This is the annoying libdivecomputer format. */
int flags, value;
/* .. and this is our "extended" data for some event types */
- enum dive_comp_type divemode;
union {
+ enum dive_comp_type divemode; // for divemode change events
/*
- * Currently only for gas switch events.
- *
* NOTE! The index may be -1, which means "unknown". In that
* case, the get_cylinder_index() function will give the best
* match with the cylinders in the dive based on gasmix.
*/
- struct {
+ struct { // for gas switch events
int index;
struct gasmix mix;
} gas;