summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 9d1805b86..4e45ca860 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -14,7 +14,6 @@
#include <string.h>
#include <sys/stat.h>
#include "divesite.h"
-
#include <libxml/tree.h>
#include <libxslt/transform.h>
#include <libxslt/xsltutils.h>
@@ -92,6 +91,7 @@ struct event {
* case, the get_cylinder_index() function will give the best
* match with the cylinders in the dive based on gasmix.
*/
+ enum dive_comp_type divemode;
struct {
int index;
struct gasmix mix;
@@ -364,6 +364,9 @@ struct dive_components {
unsigned int weights : 1;
};
+extern struct event *get_next_divemodechange(struct event **evd);
+extern enum dive_comp_type get_divemode_at_time(struct divecomputer *dc, int dtime, struct event **ev_dmc);
+
/* picture list and methods related to dive picture handling */
struct picture {
char *filename;