summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 01:19:07 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 11:19:27 -0800
commitd488c37cc11a6051f94715465264a38bf7cf4dc2 (patch)
treef27a306bab8c2792598a2cfccd66e9faea1ec191 /dive.h
parent9ef81d3ed38bd2e7498242095e1655d568c61f7e (diff)
downloadsubsurface-d488c37cc11a6051f94715465264a38bf7cf4dc2.tar.gz
Show dive coordinates on map based on dive site
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index c38016bb5..42cec6224 100644
--- a/dive.h
+++ b/dive.h
@@ -505,6 +505,13 @@ static inline struct dive *get_dive_from_table(int nr, struct dive_table *dt)
return dt->dives[nr];
}
+static inline struct dive_site *get_dive_site_for_dive(struct dive *dive)
+{
+ if (dive)
+ return get_dive_site_by_uuid(dive->dive_site_uuid);
+ return NULL;
+}
+
static inline unsigned int number_of_computers(struct dive *dive)
{
unsigned int total_number = 0;