summaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-09 18:58:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commitbe9f9efb0eae6f09db4c61de7a5156b186dc2ad6 (patch)
tree39e661e97de294d2de514048aa625f58d08a4f88 /core/dive.h
parent09287809ebb76541a31af94e60856f731e3e9d37 (diff)
downloadsubsurface-be9f9efb0eae6f09db4c61de7a5156b186dc2ad6.tar.gz
profile: pass dive to EventItem
Don't access the global displayed_dive variable in an effort to make the profile reentrant. Note that this still accesses the global dc_number variable, which will likely have to be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index a38236fc5..5bd5989d7 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -122,6 +122,7 @@ extern const char *get_dive_country(const struct dive *dive);
extern const char *get_dive_location(const struct dive *dive);
extern unsigned int number_of_computers(const struct dive *dive);
extern struct divecomputer *get_dive_dc(struct dive *dive, int nr);
+extern const struct divecomputer *get_dive_dc_const(const struct dive *dive, int nr);
extern timestamp_t dive_endtime(const struct dive *dive);
extern struct dive *make_first_dc(const struct dive *d, int dc_number);