summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-19 14:39:34 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-19 20:12:59 +0900
commita117428ff46b15f458cabf29c250b2e7d70cc31d (patch)
treec3e65296b3f3971398a527746f0dbe5550a98298 /dive.h
parent419434f494e27979f4f904612d7f5be92451c54f (diff)
downloadsubsurface-a117428ff46b15f458cabf29c250b2e7d70cc31d.tar.gz
Add ability to make a dive computer the first dive computer of a dive
If a dive has multiple dive computers we enable a special context menu when the user right-clicks on the dive computer name AND is not already showing the first dive computer. In that case we offer to make the currently shown dive computer the first one. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index d371b1508..98238970f 100644
--- a/dive.h
+++ b/dive.h
@@ -361,6 +361,7 @@ struct dive_table {
extern struct dive_table dive_table;
extern int selected_dive;
+extern unsigned int dc_number;
#define current_dive (get_dive(selected_dive))
#define current_dc (get_dive_dc(current_dive, dc_number))
@@ -405,6 +406,8 @@ static inline struct divecomputer *get_dive_dc(struct dive *dive, int nr)
return dc;
}
+extern void make_first_dc(void);
+
/*
* Iterate over each dive, with the first parameter being the index
* iterator variable, and the second one being the dive one.